iOS10推送做大改造,做了iOS10的推送适配后,发现点击推送消息进到应用一闪而过
解决方案:添加UNUserNotificationCenterDelegate
- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)())completionHandler