Tag: beta6 unnotificationrequest

xcode 8推送通知function和授权文件设置

当使用xcode 8进行推送通知设置时,与xcode 7不同, xcode 8需要开发人员打开推送通知function开关(位于TARGETS -> AppName -> Capabilities ,如下图所示), 那么它将生成AppName.entitlements文件如下 //AppName.entitlements <key>aps-environment</key> <string>development</string> 但对于生产版本的应用程序,如果我们改变string //AppName.entitlements <key>aps-environment</key> <string>production</string> 那么能力显示警告 并且似乎无论在aps-environment中指定了哪个string值,仍然可以在application:didRegisterForRemoteNotificationsWithDeviceToken:处获取推送设备标记application:didRegisterForRemoteNotificationsWithDeviceToken: 那么推送通知权利的正确设置是什么? 谢谢