【发布时间】:2015-12-01 02:14:39
【问题描述】:
我有两个 Ionic 应用程序。我有一个我不久前提交的很好。现在,当我在另一个应用程序上提交构建时,我不断收到此错误。
Missing Push Notification Entitlement - Your app appears to include API
used to register with the Apple Push Notification service, but the app
signature's entitlements do not include the "aps-environment"
entitlement. If your app uses the Apple Push Notification service, make
sure your App ID is enabled for Push Notification in the Provisioning
Portal, and resubmit after signing your app with a Distribution
provisioning profile that includes the "aps-environment" entitlement.
See "Provisioning and Development" in the Local and Push Notification
Programming Guide for more information. If your app does not use the
Apple Push Notification service, no action is required. You may remove
the API from future submissions to stop this warning. If you use a
third-party framework, you may need to contact the developer for
information on removing the API.
所以我尝试了很多东西:它们都可以找到here 我尝试了前 3 个响应。
- 我注释掉了 AppDelegate.m 中的所有推送通知
- 我注释掉了代码并将
preprocessor中的属性设置为禁用 - 我在我的项目中搜索了所有推送通知实例
- 我将我的好应用复制了 AppDelegate.m 并将其粘贴到坏应用中。
- 我删除了所有本地配置文件。
所以当我不久前制作我的应用程序时,它问我是否需要推送通知。我记得清楚地说不。
任何帮助将不胜感激!
我在想也许我只需要使用 .bak 制作应用程序,然后重新创建应用程序并复制我的代码?这绝对是最后的手段。
【问题讨论】:
-
我不会太担心它。对于尚未添加推送通知代码的应用程序,我收到了相同的消息。没有第三方框架或库,都是我自己的代码,所以我可以自信地说我没有提到 Push 和得到这个。此消息在过去 2-3 周内开始出现。如果有人确实有推送通知功能并看到了这一点,那么正如警报所说,他们只需要重新检查配置文件是否有它,尽管在一天结束时它只是一条消息,而不是警告。
-
好的!我将我的应用提交到应用商店。我们会看看他们怎么说。
-
酷,我已经提交(更新)它,一切都很好!祝你的应用好运
标签: ios cordova ionic-framework ionic app-store-connect