Missing Push Notification Entitlement

收不到消息
标签: #<Tag:0x00007fb834a41138>

(Drunk) #1

###Missing Push Notification Entitlement
####折腾了一周, 实在搞不定了
Dear Developer,

We identified one or more issues with a recent delivery for your app, "微窝房产". Your delivery was successful, but you may wish to correct the following issues in your next delivery:

Missing Push Notification Entitlement - Your app appears 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. Xcode 8 does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor's Capabilities pane, or manually add the entitlement to your entitlements file. For more information, see https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1.

After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect.

Best regards,

The App Store Team

https://community.jiguang.cn/t/ios/3606/6

这个帖子也看过了, capabilitiespush notification也是开启的, 所有证书也全都重新配置过好多次了, 极光推送里的证书配置也同步重配了好多次, 一直都没搞定, 实在没辙来这求助了

####XCODE

####APP ID

jpush

现在的情况是开发环境可以正常注册, 正常接收通知, 打包上传到应用商店苹果会发送上述issues邮件, 且发布后的应用无法正常注册, 无法接收通知, 希望有大神帮忙找到问题所在, 解决燃煤之急. 在这先谢谢了!


(12) #2

根据这个检查,特别是最后一点


(Drunk) #3

黑苹果
VMWare 14
OSX 10.13.4
XCode 9.3.1


(Drunk) #4

###非常感谢, 貌似解决了

很奇怪之前没有这个问题, 我也搜到过这个答案, 但又看到说XCODE开启push notification后会自动生成相关配置文件的, 再加上之前打包没出现过这个问题, 就没仔细去找配置文件. 不知道是不是xcode8自动修改了配置xcode9却没有.

等了一个小时还没收到苹果邮件, issues和processing邮件都没收到, 估计只是延迟了. 通知应该正常了, 因为看到upload时应用包概述里面的entitlements 已经包含aps-environment了

再次感谢!!@Lris


(12) #5

嗯,你可以自己测试下推送是否在线上正常了,Apple 那边过不了的那种情况,你自己测试发通知,线上的也是会收不到的,通知能正常收到,那 Apple 审核基本没有什么问题


(Gert) #6

您好!请问您是怎么解决这个问题的,我遇到了同样的问题,尝试了很多方法都不行,期待您的答案!


(12) #7

这个文件检查下有没有漏掉


(Gert) #8

应该已经解决了,我根据build setting中code signing Entitlements里找到路径 Entitlements-Release.plist添加一个key: aps-environment ,value: production 就好了,非常感谢