1
我对IOS 10.工作推送通知当应用程序处于非活动状态/关闭,并得到通知,我能够与通过点击应用程序图标没有点击IOS通知获取用户信息PushNotification(负载)10
获得用户信息(通知有效载荷)NSDictionary *info = launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey];
但是,如果我直接点击应用程序图标(不通知徽章),我无法找到通知有效载荷。将这一post并通过写
didReceiveRemoteNotification:userInfo
fetchCompletionHandler:^(UIBackgroundFetchResult handler)
{ Logging userinfo with NSLog to verify, but I don't see any log entry}
到文件,并在didFinishLaunchingWithOptions
回读试图访问,但没有运气。有没有其他IOS方法可用于此用例?
看到这适用于iOS 10 https://stackoverflow.com/questions/39382852/didreceiveremotenotification-not -called-IOS-10/39383027#39383027 –