• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

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

Engaged ,
Dec 13, 2017 Dec 13, 2017

Copy link to clipboard

Copied

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

TOPICS
Development

Views

1.7K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Dec 13, 2017 Dec 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)

Votes

Translate

Translate
Participant ,
Dec 13, 2017 Dec 13, 2017

Copy link to clipboard

Copied

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)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 13, 2017 Dec 13, 2017

Copy link to clipboard

Copied

Cheers. Submitted again, Fingers crossed.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 13, 2017 Dec 13, 2017

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 13, 2017 Dec 13, 2017

Copy link to clipboard

Copied

Apparently it wasn't a rejection but just a warning. I am not in charge of submissions so I am reporting what I have been told. Once I have precise information I'll post it here.

Anyway I added the entitlement.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 14, 2017 Dec 14, 2017

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 14, 2017 Dec 14, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 08, 2018 Oct 08, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines