Handling Push Notifications when App is NOT running (i.e Totally Killed)
问题 I'm able to send push notifications to my IOS device. But when I click on that notification it just opens the app. No message is shown inside the app. Code used by me: if (application.applicationState == UIApplicationStateActive) { NSString *cancelTitle = @"Close"; NSString *showTitle = @"Show"; NSString *message = [[userInfo valueForKey:@"aps"] valueForKey:@"alert"]; UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Some title" message:message delegate:self cancelButtonTitle