Is it possible to get the message that was displayed to the user via remote notifications using with this implementation of the app did recieve remote notifiactions method?
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
{
NSString *message;
// code to set the string "message" to the remote notification's message...
}
You get it by accessing the JSON that was parsed in the userInfo Dictionary, If you print out your userInfo Dicitonary object like so:
NSLog(@”userInfo: %@”, userInfo);
You’ll get all the info you need.