问题描述
最近我的申请在上传时被拒绝了.Apple 审核团队说我的应用缺少推送通知权利"
Recently my application got rejected while uploading it. The Apple review team says my app is "Missing Push Notification Entitlements"
这是他们提供的信息:
缺少推送通知权利 - 您的应用程序向 Apple 推送通知服务注册,但应用程序签名的权利不包括所需的aps-environment"权利.确保您已为此应用启用推送通知服务,并且您已下载包含aps-environment"权利的分发配置文件.
我的应用程序的早期版本曾经有推送通知,我的应用程序二进制文件从未因此被拒绝.我应该在这里做什么?
Earlier versions of my app used to have push notifications, and my app binary never got rejected due to that. What should I do here?
推荐答案
在任何文本编辑器中打开您的配置文件并搜索环境".
Open your Provisioning Profile in any Text Editor and search for "environment".
你应该找到:aps-environment
如果您在配置文件中没有看到 aps-environment
,则您的 Apple 配置证书存在问题.
If you don't see aps-environment
in your provisioning profile, there is an issue in your Apple provisioning certificate.
如果您创建了没有推送通知的证书,然后您添加了推送通知服务,Apple 不会更新您的配置文件.
If you created a certificate without push notifications, and then later on you added Push Notification service, Apple DOESN'T update your provisioning profile.
您需要创建一个新的配置文件.使用这个新的配置文件对二进制文件进行签名,然后你就可以开始了.
You need to create a NEW provisioning profile. Sign the binary with this new Provisioning Profile and you would be good to go.
这篇关于应用程序因“缺少推送通知权利"而被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!