gpt4 book ai didi

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

转载 作者:IT老高 更新时间:2023-10-28 11:23:04 29 4
gpt4 key购买 nike

所以我有一个名为 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 及其权利:

enter image description here

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

enter image description here

最佳答案

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

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

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

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com