Skip to main content
Inspiring
December 13, 2017
Resuelto

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

  • December 13, 2017
  • 1 respuesta
  • 2220 visualizaciones

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

Este tema ha sido cerrado para respuestas.
Mejor respuesta de 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 respuesta

IGZN
IGZNRespuesta
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)

Inspiring
December 13, 2017

Cheers. Submitted again, Fingers crossed.

LilGames
Inspiring
October 8, 2018

It was just a warning, though adding correct entitlement there shouldn't be a warning next time.

I couldn't check since App was approved

A huge app, complex multiplayer game with a lot of external assets, shared code with Desktop and Android, approved at first submission.

Pretty proud


Except your push notifications probably didn't work. RIGHT?