Search code examples
iphoneuilocalnotification

UILocalNotification without alert


Is it possible to to call didReceiveLocalNotification without displaying Alert when in background?


Solution

  • didReceiveLocalNotification will only be called if you app is in the foreground or when the user clicked to view the notification and you app is restored to the foreground from the background.

    You might be able to use a UILocalNotification with out a message, by example update your application icon badge. But then the didReceiveLocalNotification will not be called if you apps in not the in foreground.