缺少推送通知权利 [英] Missing Push Notification Entitlement

查看:27
本文介绍了缺少推送通知权利的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在提交二进制版本后,我收到了来自 Apple 的警告邮件.

I have received a warning mail from Apple after submitting the binary build.

    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.

我没有使用推送通知或任何第三方框架,如 Coredova,但我不确定为什么我一次又一次地收到此警告.我已经浏览了以下链接,但到处都是第三方框架问题.

I am not using Push notifications or any third party frameworks like Coredova but I am not sure why I am getting this warning again and again. I have gone through the following links but everywhere it is third party framework issue.

我不想启用推送通知服务,因为我不会在我的应用中使用它.任何帮助修复此警告将不胜感激.提前致谢.

I don't want to enable push notification service as I am not going to use it in my app. Any help would be appreciated to fix this warning. Thanks in advance.

注意:我已经多次尝试删除和重新创建我的配置文件和证书.

Note : Already several times I have tried deleting and re-creating my profiles and certificates.

缺少推送通知权利警告

缺少推送通知权利

IOS 缺少推送通知权利

推荐答案

我很确定这是 Apple 检查系统中的错误.我昨天上传了一个应用程序并收到了这条消息.此应用程序已更新至少 30 次,没有任何问题.我没有在上一个版本中添加任何推送通知代码,也没有使用任何可能导致此消息的框架,例如 PhoneGap 或 Cordova.它不会出现在设备的通知下方.

I am pretty certain that it is a bug in Apples checking system. I uploaded an app yesterday and got this message. This app has been updated at least 30 times without any problems. I didn't add any push notification code in the last version and I don't use any frameworks like PhoneGap or Cordova that could cause this message. It doesn't appear under notifications on the device.

我在应用中搜索了推送通知代码,但没有找到任何内容:

I have searched the app for push notification code without finding anything:

grep -r "registerUserNotificationSettings" .
grep -r "registerForRemoteNotificationTypes" .

grep -r "registerUserNotificationSettings" .
grep -r "registerForRemoteNotificationTypes" .

我终于尝试上传了 7 月份批准的先前版本(并且没有生成电子邮件).这次我也收到了这个版本的警告邮件.所以我认为 Apple 是错误的,我会抓住机会,希望它尽管发出警告,但仍能获得批准.

I finally tried to upload the previous version that was approved in July (and didn't generate an email). This this time I got the warning email also for this version. So I think that Apple is wrong and I will take my chances and hope it will be approved despite the warning.

在 Apple 开发者论坛上找到了一位 Apple 员工的回复:

Found this reply from an Apple staff in Apple Developer Forum:

该通知只是警告,而不是拒绝.

"That notice is a warning only, not a rejection.

应用验证器检查应用中 UIApplicationDelegate 方法 application:didRegisterForRemoteNotificationsWithDeviceToken: 的实现.如果您的应用委托实现了该方法并且没有 aps-environment 权利,您将收到您描述的警告.

The app validator checks for an implementation of the UIApplicationDelegate method application:didRegisterForRemoteNotificationsWithDeviceToken: in the app. You’ll get the warning you described if your app delegate implements that method and there is no aps-environment entitlement.

即使您的应用没有对推送通知执行任何操作,您使用的第三方库也可能实现了该方法.在这种情况下,您可以忽略警告.它可以让使用推送通知的开发人员知道他们是否可能错误地签署了他们的应用程序."

It's possible that a third-party library you're using has implemented that method even though your app doesn't do anything with push notifications. In that case you can just ignore the warning. It's there to let developers who do use push notifications know if they might have signed their app incorrectly."

编辑 2:我现在有两个不同的应用程序,尽管生成了警告电子邮件,但它们已被批准而没有任何问题

EDIT 2: I now have two different apps that have been approved without any problems despite generating the warning email

这篇关于缺少推送通知权利的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆