TK189
TK189

Reputation: 1500

I need to parse the payload from push notification, but if user press game icon instead of press notification, how can I get the data?

I need to parse the payload from different push notification, but if user press game icon instead of pressing notification to start the app, how can I get the payload?

I already implement these two:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
-(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo

If user press game icon to start game, the launchOptions is nil, So how to do? Is there any method provide to read push notification from notification center ?

Very appreciate for your help.

Upvotes: 1

Views: 417

Answers (1)

Omar Abdelhafith
Omar Abdelhafith

Reputation: 21221

if the user ignored the push notification and opened the application from the icon, then you will not have any mean to get that notification payload,

Upvotes: 4

Related Questions