Skip to main content
Inspiring
Dec 13, 2017 2:54 PM UTC
Answered

AIR for iOS - app gets rejected for missing push notification entitlement

Hi,

compiling with AIR 27.0.0.124.

There seems to be nothing in our manifest mentioning push notification, but app gets rejected with the following reason:

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.

Here is relevant part of iOS manifest (sensitive data removed):

<iPhone>

    <!-- A list of plist key/value pairs to be added to the application Info.plist -->

    <InfoAdditions><![CDATA[

  <key>MinimumOSVersion</key>

  <string>8.0</string>

 

  <key>UIStatusBarStyle</key>

  <string>UIStatusBarStyleBlackOpaque</string>

 

  <key>UIRequiresPersistentWiFi</key>

  <string>NO</string>

 

  <key>FacebookAppID</key>

  <string>000</string>

 

  <key>FacebookDisplayName</key>

  <string>xxx</string>

 

  <key>CFBundleURLTypes</key>

  <array>

    <dict>

      <key>CFBundleURLSchemes</key>

      <array>

        <string>fb000</string>

        <string>air.xxx</string>

      </array>

    </dict>

  </array>

<key>LSApplicationQueriesSchemes</key>

  <array>

    <string>fbapi</string>

    <string>fb-messenger-api</string>

    <string>fbauth2</string>

    <string>fbshareextension</string>

  </array>

 

  <key>NSPhotoLibraryUsageDescription</key>

  <string>My description about why I need this feature in my app</string>

 

  <key>UIDeviceFamily</key>

  <array>

    <string>1</string>

    <string>2</string>

  </array>

  <key>NSAppTransportSecurity</key>

  <dict>

    <key>NSAllowsArbitraryLoads</key>

    <true/>

  </dict>

]]></InfoAdditions>

    <requestedDisplayResolution>high</requestedDisplayResolution>

  </iPhone>

Any suggestion?

Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.
IGZN
IGZNCorrect answer
Inspiring
Dec 13, 2017 4:56 PM UTC

It happens when the certificate does contain Apple's push notification service.

Include this in entitlements:

<key>aps-environment</key>

<string>production</string>

or

<key>aps-environment</key>

<string>development</string>

depending on the type of certificate (for app store publishing it's "production" obviously)

7 replies

IGZN
IGZNCorrect answer
Inspiring
Dec 13, 2017 4:56 PM UTC

It happens when the certificate does contain Apple's push notification service.

Include this in entitlements:

<key>aps-environment</key>

<string>production</string>

or

<key>aps-environment</key>

<string>development</string>

depending on the type of certificate (for app store publishing it's "production" obviously)

Translate
PippoAppsAuthor
Inspiring
Dec 13, 2017 4:58 PM UTC

Cheers. Submitted again, Fingers crossed.

Translate
enricj12878062
Known Participant
Dec 13, 2017 9:08 PM UTC

I have these same issue. But at the moment is just this issue:

Your delivery was successful, but you may wish to correct the following issues in your next delivery:

Missing Push Notification Entitlement - Your app appears to register with the Apple Pus....

Will it be rejected if I send it to submission?

Translate