iphone local notification in simulator

Yes, local notifications work with the simulator. However, make sure you are implementing application:didreceiveLocalNotification in your app delegate if you want to see the notification while your app is in the foreground: – (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification { UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@”MyAlertView” message:notification.alertBody delegate:self cancelButtonTitle:@”OK” otherButtonTitles:nil]; [alertView show]; if (alertView) { [alertView release]; … Read more

How to set the app icon as the notification icon in the notification drawer

I know its bit late to answer here and also its already been answered, but I came here looking for an easy fix using firebase notifications. Someone like me visiting here can do the solution by recommended and easy way of firebase notification, which is simply adding meta-data in manifest. Reference <!– Set custom default … Read more

When is didRegisterForRemoteNotificationsWithDeviceToken called?

The application delegate will call the method upon successful registration of remote notification after you call this method in your UIApplication: (void)registerForRemoteNotificationTypes:(UIRemoteNotificationType)types According to: http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIApplication_Class/Reference/Reference.html When you send this message, the device initiates the registration process with Apple Push Service. If it succeeds, the application delegate receives a device token in the application:didRegisterForRemoteNotificationsWithDeviceToken: method; if … Read more

Push Notifications when app is closed

Yes, it is possible ‘to receive notifications from google cloud message when the application is fully closed’. Infact, A broadcast receiver is the mechanism GCM uses to deliver messages. You need to have implement a BroadcastReceiver and declare it in the AndroidManifest.xml. Please refer to the following code snippet. AndroidManifest.xml <receiver android:name=”.GcmBroadcastReceiver” android:permission=”com.google.android.c2dm.permission.SEND” > <intent-filter> … Read more

How would you create a notification system like on SO or Facebook in RoR?

So the general gist: 1) Notifications would be a polymorphic association in that comments can have many notifications, users can have many notifications, a ‘following’ can have many notifications etc. 2) You can have Model Observers, where you can “observe” certain events, such as when a new comment is created. This is would be your … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)