Error Domain=NSCocoaErrorDomain Code=3000 "未找到应用程序的“aps-environment”的授权字符串" UserInfo={NSLocalizedDes
在启用通知的时候,证书的配置,开发中账号,一切都设置妥当,在编译时还是发生下面的错误
Error Domain=NSCocoaErrorDomain Code=3000 "未找到应用程序的“aps-environment”的授权字符串" UserInfo={NSLocalizedDes
现在新版的 Xcode 需要在 Capabilities 打开 Push Notifications 开关,并且其下的Steps 都是对号,如果没有证书,或者Apple ID 没有通知服务,都是会报错的

这时再去编译运行项目,就没有问题了!
2. You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
需要在 Capabilities 打开Background Modes开关,并勾选 Remote notifications

网友评论