add the following method:
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
{
for (id key in userInfo)
{
NSLog(@"key: %@, value: %@", key, [userInfo objectForKey:key]);
}
}
( ), (2, , , ). , ( 10 , ) didRegisterForRemoteNotificationsWithDeviceToken . .