Вот код для обработки push-уведомлений,
- (void)userNotificationCenter:(UNUserNotificationCenter *)center
didReceiveNotificationResponse:(UNNotificationResponse *)response
withCompletionHandler:(void(^)(void))completionHandler {
NSDictionary *userInfo = response.notification.request.content.userInfo;
if (userInfo[kGCMMessageIDKey]) {
NSLog(@"Message ID: %@", userInfo[kGCMMessageIDKey]);
}
// Print full message.
NSLog(@"data messages555 %@", userInfo);
//here you will get user info. Push notificationd data
NSLog(@"Data121 : %@",userInfo);
completionHandler();
// write code for handling push notifications
// write code to handle action after clicking on the push notifications
}