I’m trying to handle all possible cases with remote notifications.
I’m ok when app in foreground – didReceiveRemoteNotification is called.
The problem is when app in background state, and I receive push notification.
Nothing is called.
how to let user know that he has new remote notification when app come back to foreground ?
I’m trying to handle all possible cases with remote notifications. I’m ok when app
Share
The only way for you to intercept a push notification is when the user tap the notify in the notification center (or when slide the app icon from the lock screen).
In this case before the app go in foreground the
didFinishLaunchingWithOptionsmethod in the app delegate is called. You should use theNSDictionarylaunchOptionsto determine if the app has been launched from notification center or by tapping the icon (the normal use)