'Missing Push Notification Entitlement' for iOS standalone build #62
Comments
|
Getting the same warnings on the detached app that uses ExpoSDK (Create React Native App -> "eject"). I don't use any push notifications and don't need them, so just disabling those should work for me. Already verified that "Push notifications" are disabled on "Capabilities" tab in X-Code. Any ideas on how to solve this? |
|
In my case, the issue was caused by Firebase SDK in the app. It can be easily turned off, just follow this solution: Hurray! No more 'Missing Push Notification Entitlement' warning in my ejected app. |
|
In order to fix this, you need to enable "Push notifications" for your app on the app store.
TL;DR: Expo needs to enable the "Push Notification" service when creating the app in the Apple Developer Portal |
|
Hey TPXP. I did what you said. I went and checked "Push Notifications" under the app id section and submitted another build. Got rejected within minutes for the same reason again. UPDATE: It's working now, I think. The first time, the push notification was still not checked, I don't know how. But then I -
And it worked. I'm not sure what worked exactly, but you gotta make sure you do these steps correctly. Hope it helps. |
|
@TPXP I got rejected too after the steps. The 5th step is needed. I didn't get the last part about Expo. Where exactly can I enable that? |
|
Thanks for your feedback @andregufc, I updated my comment. For now, you cannot ask expo to enable Push Notifications when it creates the app on your Apple developer account, I just gave a hint for a fix. 😉 |
|
Finally I got success uploading the app. Thanks @TPXP ! Just for reference: I removed all the previous certificates and the provisioning profile related to my app. Then I followed the 5 steps again. |
|
I have the same problem. I do not use Push notifications. In developer.apple.com it states that Push Notifications are disabled. |
|
Yes, you have to enable Push Notification Service for App ID if you wish to use Expo. Even though you might be able to successfully upload the .ipa file to Apple, you'll most probably receive an email from Apple that your app has push notifications related key in entitlements, but that service is not enabled for the App ID. It's also possible that in future Apple won't let you upload your app if the Push Notifications Service is not enabled for the App ID. I'm closing this issue because we plan to make a small improvement in expo-cli which will let users know if their App ID settings are not compatible with Expo projects - you can track it here - expo/expo-cli#608 |
|
@dsokal Is this limitation specific to managed apps or even standalone/bare apps ? I am facing this issue with a bare expo app created as per instructions on react-native's docs |
|
@AdamGerthel You might want to enable "Push Notofications" in capabilities in your Xcode project AND on your developer account for this particular app ID. You also need fresh distribution/adhoc/dev certs. I know this is pretty un-intuitive. In the end, I simply chose to not use expo and go via bare react native along with fastlane for build/cert automation. That solved most of my issues. |
|
@kalyan02 Thank god (or you)! That did it. I ejected from Expo just days ago (needed IAP) and have been setting up Fastlane etc over the last couple of days (which has been hell compared to Expo!). This was the last problem I had. Now I'm finally completely independent, although I still use Expo in the project, for the unimodules. |
|
@dsokal @AdamGerthel @kalyan02
Or do I need to follow setting some key to disable push notification , similar to https://stackoverflow.com/a/43974297 |
|
@bandhavya I'm afraid I don't remember which changes I did - but I know that I did not have to enable push notifications in the app. |
|
@AdamGerthel Have you Added key info.plist like in this https://stackoverflow.com/a/43974297 ? |
|
@bandhavya no, and I'm not using firebase so that wouldn't make sense. I did find this: https://forums.expo.io/t/missing-push-notification-entitlement-bare-workflow/33796/2 Did you do what was suggested here? #62 (comment) I mean, that's apparently what I did. |
Environment
Packages
Steps to Reproduce
exp build:iosand allow Expo to manage all certificates and profilesExpected Behavior
The build is processed without issues and available for TestFlight submission.
Actual Behavior
I get a warning email from iTunes Connect:
The text was updated successfully, but these errors were encountered: