We have noticed that using PGBS to build apps which run on iOS 10 no longer work correctly with push notifications. We get the message:
"no valid 'asp-environment' entitlement string found for application"
After seeing similar issues raised on the internet and on this forum, we have found that the way push notifications are enabled has changed for iOS 10 requiring an .entitlements file to be included in Xcode8:
The following post suggests a workaround: Re: Phonegap Build: Currently no way to add push notifications on iOS
However, this workaround would not work for us as we use PGBS as part of our products workflow to allow non-technical end users to generate apps. We cannot therefore expect our end-users to retrospectively add an .entitlements file and resign the app's .ipa file.
Does anybody know of a way to be able to instruct the PGBS to generate the appropriate entitlement for push notifications automatically, either as part of our config.xml or as part of the provisioning profile we choose? Is this an issue which will be addressed within the PGBS?
As it stands, apps that our end-users build which use push notifications will no longer work on iOS 10 devices.
Any help or suggestions appreciated.
We have tried this again now and it appears to be working on iOS 10.
Can anybody from the PhoneGap Build team comment on whether this is something that was fixed or not?
yeah it's been fixed. this was an issue when we moved to Xcode 8 and iOS 10
What exactly has been fixed? I have push notifications working on both Android and iOS using Phonegap Build and https://github.com/phonegap/phonegap-plugin-push
But still getting the warning about missing entitlements (have been for over a year):
Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement.