简体   繁体   中英

Missing push notification entitlement, false positive for app

Please read this question completely without marking it as duplicate , I am now working on an app not using any API for Apple Push Notification.

And as far as testing goes, it works fine, but Apple keeps emailing me the message below.

I have read on the net, and done as much as I can to avoid this. All i found on the internet having solution for this kind of problem for those who enables push notification but not a single solution for this false positive case.

My App ID is even not enabled for Push Notification, regenerating my Provisioning Profile (a number of times), with manual signing and …. But it keeps coming whatever I do. Am I missing some point? I've searched my app code for registerForRemoteNotifications and so far as I can tell I never attempt to register for push notifications.

Mail from Apple :-

We identified one or more issues with a recent delivery for your app, "myAPP". 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.

any help is appreciated, this is rally important for me to fix this warning. I have read on the net, and done as much as I can to avoid this. All i found on the internet having solution for this kind of problem for those who enables push notification but not a single solution for this false positive case. i will be grateful for those with logical explanation to this issue.

this is a warning by apple that you have enable push notification for particular App in your developer console .

But you have not enabled the push notification in your application Please go to your app target and enable this in capabilities and then try to upload

在此处输入图片说明

Disable Push notfication

Go to your Developer account Click on the app id for which you want to disable it 在此处输入图片说明

then press edit and deselect the push notification in panel and save在此处输入图片说明

Then you have to again create new production certificates and upload the application.

Hope it helps

Happened to me as well.

I just cleaned the build Command + Option + Shift + K and tried again, and it worked.

Sometimes you have to unselect and select your provisioning profiles in Xcode to make it work. I don't know why.

It is a pain trying different options out, as the process takes quite a bit of time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM