提交二进制版本后,我收到了来自Apple的警告邮件。
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.
After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect.
我没有使用Push通知或诸如Coredova之类的任何第三方框架,但是我不确定为什么会一次又一次收到此警告。我已经浏览了以下链接,但是到处都是第三方框架问题。
我不想启用推送通知服务,因为我不会在我的应用程序中使用它。任何帮助将不胜感激以解决此警告。提前致谢。
注意:我已经尝试过几次删除并重新创建个人资料和证书。
Missing Push Notification Entitlement warning
Missing Push Notification Entitlement
IOS Missing Push notification entitlement
最佳答案
我可以肯定这是Apple检查系统中的错误。我昨天上传了一个应用,并收到了此消息。此应用程序已更新至少30次,没有任何问题。我没有在上一版本中添加任何推送通知代码,也没有使用任何可能导致此消息的框架,例如PhoneGap或Cordova。它不会显示在设备上的通知下。
我在应用程序中搜索了推送通知代码,但未找到任何内容:
grep -r“registerUserNotificationSettings”。
grep -r“registerForRemoteNotificationTypes”。
我终于尝试上传7月份批准的先前版本(并且没有生成电子邮件)。这次,我也收到此版本的警告电子邮件。因此,我认为苹果公司是错的,尽管有警告,我还是会捕获机会并希望它会获得批准。
编辑:在Apple开发人员论坛中找到了来自Apple员工的以下答复:
“该通知仅是警告,而不是拒绝。
应用验证器在应用中检查UIApplicationDelegate方法application:didRegisterForRemoteNotificationsWithDeviceToken:的实现。如果您的应用程序委托(delegate)实现了该方法,并且没有aps环境的权利,则会收到您所描述的警告。
即使您的应用程序不对推送通知执行任何操作,您正在使用的第三方库也可能实现了该方法。在这种情况下,您可以忽略警告。它可以让使用推送通知的开发人员知道他们是否可能对应用程序进行了不正确的签名。”
编辑2:我现在有两个不同的应用程序,尽管生成了警告电子邮件,但它们都已被批准没有任何问题
关于ios - 缺少推送通知权利,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/32251123/