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)