Letās do a simple check.
- Did you receive a undetermined status from the push notifications permission? ā
- Did you receive an email saying something about ITMS-90078: Missing Push Notification Entitlement after delivering your app through the Application Loader? ā
Making the push notifications work š±
It took my two days and several hours to find outā¦ š”
The answers are on several Github issues and some threads in the Expo forums. Iām just gathering some of the info together. Basically you need to do two things.
- Enable push notification for your app identifier. āļø
- Rebuild with Expo clear provisioning file parameter. āļø
Enable push notifications on your App IDās Identifier
As itās mentioned in this GitHub issue:
In order to fix this, you need to enable āPush notificationsā for your app on the app store.
- Login to https://developer.apple.com/
- Go to the āCertificates, Identifiers and Profilesā section
- Select āApp IDsā in the Identifiers section on the left column
- Choose your app ID, edit it and check āPush Notificationsā. Save changes
- Generate a certificate for the production push service: go to the āCertificatesā section, and follow the assistant to add a āApple Push Notification service SSL (Sandbox & Production)ā certificate for your app. Acute readers will notice that expo does not need this certificate since it uses a key to talk to Apple directly
TL;DR: Expo needs to enable the āPush Notificationā service when creating the app in the Apple Developer Portal
Rebuild your Expo app
Second, Iām sure you already has published you app, so what you need to do is change the expo.ios.buildNumber
in your app.json file and then rebuild the app clearing the provisioning profile like this. šØāš»š©āš»
expo build:ios --clear-provisioning-profile
In that way Expo will generate the build with the Push Notifications that are now activated in your App ID Identifier.
Finally, upload it again from the Application Loader. You should be fine.
IMPORTANT! If clearing the provisioning profile doesnāt work, try clearing all with the command:
expo build:ios -c
Top comments (0)