- Home /
Added DeltaDNA and iOS submission is failing because it is missing the the "aps-environment" entitlement.
When we submit to iTunes we get notified that we are "Missing Push Notification Entitlement".
Checking in the generated Xcode project we can find Classes/Preprocessor.h and in it see that we have:
#define UNITY_USES_REMOTE_NOTIFICATIONS 1
This started happening with the integration of DeltaDNA. Does anyone know what is going on?
Answer by jonAtNvizzio · Jan 19, 2018 at 07:52 PM
DeltaDNA can manage Push notifications for you as well as analytics. As part of this, included with their library is a post-processing script named EnableNotificationsPostProcessBuild.
This script locates the Preprocessor.h file and sets
UNITY_USES_REMOTE_NOTIFICATIONS 1
This enables push notification support within your build and will start causing the submission issue if your build pipeline is not set up to support the notifications. To fix the submission issue you have two options:
1. Enable the entitlement in Xcode when you build the app.
(For CI setups you can do this once, backup the .entitlements file, and then re-apply it to the project during build.)
2. Comment out the EnableNotificationsPostProcessBuild script to disable push notification support.
Your answer
Follow this Question
Related Questions
How to delete notifications from APNS 0 Answers
Trying to configure my project for AppStore submission? Help! 0 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Push Notification to start a scene 2 Answers
Enable Push Notification in XCode project by default? 2 Answers