ios - 没有为应用商店上的应用程序找到有效的 'aps-environment' 权利字符串

所以我有一个名为 Dripper 的应用程序,我大约在一个月前推出,然后在几天前进行了更新。该更新添加了推送通知和一些小调整。我使用开发配置文件使用沙盒-apn 对其进行了测试,效果很好。然后我将事情切换到生产-apn 并将其推送到试飞,再次完美运行。一旦我将更新放到市场上并运行它,我注意到我没有在服务器上获得任何新的推送注册。我查看了设备的控制台日志,发现:

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}

我有点困惑,因为我认为 production-apn 在 ad-hoc 和应用商店构建之间的功能相同。

这是我的应用 ID 及其权利:

这是应用商店的配置文件:

最佳答案

我通过启用推送通知功能解决了这个问题。

点击 .xcodeproj -> 功能 -> 启用推送通知

关于ios - 没有为应用商店上的应用程序找到有效的 'aps-environment' 权利字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27324020/

相关文章:

ios - AFNetworking 发布请求

objective-c - Xcode 不断要求输入密码以使用系统钥匙串(keychain)

objective-c - 我不想在开始更新、结束更新 block 中为 uitableview 设

objective-c - 在 Objective-C 中将所有文本转换为小写

objective-c - 如何使用 AFNetworking 设置超时

iphone - NSTimeInterval 到 HH :mm:ss?

ios - UITableView 中的圆形 UIImageView 没有性能影响?

ios - 在自动布局中将 subview 的 X 居中抛出 "not prepared for t

objective-c - 标题中有两行文本的 UIButton (numberOfLines=2)

objective-c - sizeWithFont 方法已弃用。 boundingRectWith