所以我有一个名为Dripper的应用程序,我在大约一个月前发布了这个应用程序,然后在几天前进行了更新.更新增加了推送通知和一些小调整.我使用开发概要文件用Sandbox apn测试了它,效果很好.然后我切换到生产apn,并将其推到试飞阶段,再次运行良好.当我将更新发布到市场上并运行它时,我注意到我没有在服务器上获得任何新的推送注册.我查看了设备的控制台日志(log),发现:
Dec 4 17:55:15 Ina-touch-it coffco[1210] : Registering for remote notifications
Dec 4 17:55:15 Ina-touch-it SpringBoard[52] : No valid 'aps-environment' entitlement string found for application 'Dripper': (null). Notifications will not be delivered.
Dec 4 17:55:15 Ina-touch-it coffco[1210]<Warning>: Failed to register with error : Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x174270900 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}
我有点困惑,因为我认为生产apn在ad-hoc和app store构建之间的功能是相同的.
以下是我的应用程序ID及其权限:
以下是应用store 的资源调配配置文件: