iOS10推送做大改造,做了iOS10的推送適配後,發現點擊推送消息進到應用一閃而過
解決方案:添加UNUserNotificationCenterDelegate
- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)())completionHandler