Skip to main content
Inspiring
December 13, 2017
Answered

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

  • December 13, 2017
  • 1 reply
  • 2203 views

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 has been closed for replies.
Correct answer IGZN

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)

1 reply

IGZN
IGZNCorrect answer
Inspiring
December 13, 2017

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)

PippoAppsAuthor
Inspiring
December 13, 2017

Cheers. Submitted again, Fingers crossed.

enricj12878062
Known Participant
December 13, 2017

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?