Highlighted

Milkman's Push ANE not working on iOS10

New Here ,
Nov 13, 2016

Copy link to clipboard

Copied

up vote1down votefavorite

2

I'm using the Milkman EasyPush ANE for push notification in my iOS and Android apps. Together with the OneSignal backend.

All is fine with iOS 9 and Android, but no iOS 10 devices register. I'm building with AnimateCC (same as Flash CC Pro) and Air SDK 23.

If I debug on a iOS 10 device and listen for the onRegFailed Event, I get:

“no valid aps-environment entitlement found for application”

As mentioned, there is no problem on iOS 9.

When I uploaded the IPA to the App Store, I got the following message:

Missing Push Notification Entitlement - Your app includes an API for Apple's Push Notification service, but the aps-environment entitlement is missing from the app's signature. To resolve this, make sure your App ID is enabled for push notification in the Provisioning Portal. Then, sign your app with a distribution provisioning profile that includes the aps-environment entitlement. This will create the correct signature, and you can resubmit your app. See "Provisioning and Development" in the Local and Push Notification Programming Guide for more information. If your app does not use the Apple Push Notification service, no action is required. You may remove the API from future submissions to stop this warning. If you use a third-party framework, you may need to contact the developer for information on removing the API.

But why is it working on iOS 9 then, and not on iOS 10?

Thank you for your help

TOPICS
Development

Views

457

Likes

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

Milkman's Push ANE not working on iOS10

New Here ,
Nov 13, 2016

Copy link to clipboard

Copied

up vote1down votefavorite

2

I'm using the Milkman EasyPush ANE for push notification in my iOS and Android apps. Together with the OneSignal backend.

All is fine with iOS 9 and Android, but no iOS 10 devices register. I'm building with AnimateCC (same as Flash CC Pro) and Air SDK 23.

If I debug on a iOS 10 device and listen for the onRegFailed Event, I get:

“no valid aps-environment entitlement found for application”

As mentioned, there is no problem on iOS 9.

When I uploaded the IPA to the App Store, I got the following message:

Missing Push Notification Entitlement - Your app includes an API for Apple's Push Notification service, but the aps-environment entitlement is missing from the app's signature. To resolve this, make sure your App ID is enabled for push notification in the Provisioning Portal. Then, sign your app with a distribution provisioning profile that includes the aps-environment entitlement. This will create the correct signature, and you can resubmit your app. See "Provisioning and Development" in the Local and Push Notification Programming Guide for more information. If your app does not use the Apple Push Notification service, no action is required. You may remove the API from future submissions to stop this warning. If you use a third-party framework, you may need to contact the developer for information on removing the API.

But why is it working on iOS 9 then, and not on iOS 10?

Thank you for your help

TOPICS
Development

Views

458

Likes

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
Nov 13, 2016 0
Adobe Employee ,
Nov 13, 2016

Copy link to clipboard

Copied

Hi Nicolaskostja,

Have you added below entitlements in your app.xml :

<Entitlements>

            <![CDATA[

      <key>aps-environment</key>

  <string>development</string>

            ]]>

        </Entitlements>

Please try using above entitlements after </InfoAdditions> tag in you app.xml file. And also go through below link:

Using push notifications in AIR iOS apps | Adobe Developer Connection

Thanks,

Adobe AIR Team

Likes

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
Reply
Loading...
Nov 13, 2016 0
New Here ,
Nov 14, 2016

Copy link to clipboard

Copied

Yes, this is my Entitlement. I'm using the "production" string. And without this, I don't think it would work on iOS 9?

   <InfoAdditions><![CDATA[

        <key>MinimumOSVersion</key>

        <string>7.0</string>

    <key>UIDeviceFamily</key>

    <array><string>1</string></array>

    <key>NSAppTransportSecurity</key>

<dict>

<key>NSAllowsArbitraryLoads</key><true/>

</dict>

<key>application-identifier</key>

<string>SWXA5H99MY.com.winterlife.boscogurin</string>

<key>aps-environment</key>

<string>production</string>

<key>keychain-access-groups</key>

<array>

<string>SWXA5H99MY.com.winterlife.boscogurin</string> </array>

]]></InfoAdditions>

Likes

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
Reply
Loading...
Nov 14, 2016 0