missing aps environment for push notifications

I'm having problems with the [gameName].entitlements for push notifications on iOS 10


In iOS 10 you have to press a 'fix me' button in the Push Notifications area under Capabilities. This creates a [gameName].entitlements file which contains the line:

aps-environment = development.


This file is in my .ipa bundle and should fix a problem with registering for push notifications in iOS10.


However, when my app runs I still get this error:


fail to register with error Error Domain=NSCocoaErrorDomain Code=3000 
"no valid 'aps-environment' entitlement string found for application"
UserInfo={NSLocalizedDescription=no valid 'aps-environment'
entitlement string found for application}


Any ideas?

Cheers,

Steve

You probably need to enable the push notifications entitlements locally on your build.


See support post.

http://support.iterable.com/hc/en-us/articles/212157066-iOS-10-Debugging-Push-Notifications-Not-Registering


Hope this helps,

DT

Check from capabilities. I got the same error after adding push notifications and background modes from capabilities my error gone.

missing aps environment for push notifications
 
 
Q