question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Missing Push Notification Entitlement' for iOS standalone build

See original GitHub issue

Environment

  OS: macOS Sierra 10.12.6
  Node: 8.11.2
  Yarn: 1.7.0
  npm: 5.6.0
  Watchman: 4.7.0
  Xcode: Xcode 9.2 Build version 9C40b
  Android Studio: Not Found

Packages

  expo: ^28.0.0 => 28.0.1
  react: 16.3.1 => 16.3.1
  react-native: https://github.com/expo/react-native/archive/sdk-28.0.0.tar.gz => 0.55.4

Steps to Reproduce

  1. Create a standalone build using exp build:ios and allow Expo to manage all certificates and profiles
  2. Upload the build to iTunes Connect

Expected Behavior

The build is processed without issues and available for TestFlight submission.

Actual Behavior

I get a warning email from iTunes Connect:

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. 

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:21
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

43reactions
TPXPcommented, Mar 21, 2019

In order to fix this, you need to enable “Push notifications” for your app on the app store.

  1. Login to https://developer.apple.com/
  2. Go to the “Certificates, Identifiers and Profiles” section
  3. Select “App IDs” in the Identifiers section on the left column
  4. Choose your app ID, edit it and check “Push Notifications”. Save changes
  5. 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

4reactions
vmheijkecommented, Apr 11, 2019

I have the same problem. I do not use Push notifications. In developer.apple.com it states that Push Notifications are disabled. Do I understand it correctly that I need to enable them to work with Expo (although I do not use it) or do I need to change something in my development environment? and if the second is true, what? I have btw no problems submitting the app and testing it in Testflight

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing Push Notification Entitlement - Apple Developer
Hi All,. I'm attempting to upload a new version of our app. We're using the Ionic/cordova framework, and everything is up to date...
Read more >
ITMS-90078: Missing Push Notification Entitlement
This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor's Capabilities pane, or manually ...
Read more >
[Solved]-iOS - Missing Push Notification Entitlement
Open your favorite text/code editor and drop this in. Then update the two values in the following code and save it as “entitlements.plist”....
Read more >
How to not use push notifications or setup them correctly
Just tried and its the same. What did I do: Build #1 - get error Missing Push Notification Entitlement; Build #2 expo build:ios...
Read more >
Firebase/AdMob and "Missing Push Notification Entitlement"
To resolve this, make sure your App ID is enabled for push notification in the Provisioning Portal. Then, sign your app with a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found