Reputation: 1500
I was reading how handling remote notification on developer apple guide. My questions are two: what is the interpretation of the phrase
The notification is delivered when the application isn’t running in the foreground
isn’t running in the foreground covers background and not running or in the background state just. Based on the interpretation, the following sentence:
the application icon is tapped on a device running iOS, the application calls the same method, but furnishes no information about the notification.
has a different sense.
The second question concerns the situation where I get two consecutive remote notifications: When I open the app in the method
application:didFinishLaunchingWithOptions: or application:didReceiveRemoteNotification:
I have information on all notifications or just the last?
Upvotes: 3
Views: 1705
Reputation: 3366
application:didReceiveRemoteNotification:
.application:didFinishLaunchingWithOptions:
and the options will be a non-nil
object containing information about your remote notification.Upvotes: 6