简体   繁体   中英

Missing Push Notification Entitlement?

NOTE: I have read other stackoverflow questions relating to this topic but they did not help me. I also do not use any third-party SDKs.

When I submitted my app to the App Store, this is the message that I received after a few hours:

*I only uploaded the App and enabled Test-Flight, I did not submit it for App-Review.

We have discovered one or more issues with your recent delivery for "APP NAME". 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 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.

I do NOT have any push notification services or anything and this came up. I have NOT set up ANY Notification Services on my App Provisioning Profile. I checked my App Capabilities in XCode and do NOT have Background-Modes Enabled. Earlier versions of the app have successfully passed through. They have NOT been using the Push-Notifications services. I have checked out other similar stackoverflow questions relating to this topic but they did not help me. Do you know a solution that can help me solve this problem?


UPDATE 2:

I resubmitted by app. Same mail was sent to me.

The solution is to do what it says:

If your app does not use the Apple Push Notification service, no action is required.

It seems fairly clear by unless I'm missing something.

According to my research it is a bug from Apple. You should just ignore this as everything will work fine. Ref:

Missing Push Notification Entitlement Warning in email and iOS Missing Push notification Entitlement warning

We have had the same issues and everyone (included the client) was already really annoyed by those emails.

In our case an ancient dependency (FirebaseMessaging) has seemed to register to didReceiveRemoteNotification in some swizzling code - this triggered those warning-emails even if the app itself has no incorrect or mismatching settings.

Once the library is gone everything works fine again...

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