Apple Push notifications not received in iOS 9/10 after enabling its features

I tried to adapt my application to iOS 10, but I ran into problems with push notification. I tested push in two devices with iOS 9 and iOS 10. In my application, the push notification does not turn on in the function, but the application works fine in iOS 8 and iOS 9, but in iOS 10 I can not accept the token with an error:

Domain error = NSCocoaErrorDomain Code = 3000 "there is no valid aps-environment permission string found for the application"

I turned on Push Notification in Capabilities and push Notifications works, sometimes it works fine in iOS 10, but the next morning I tested it on an iOS 9 device and it didn’t work, I switched to an iOS 10 device and clicked without working on it, I returned to the old version without enabling features, and works fine on iOS 9, but not in iOS 10 (token). I tried to delete and load the preliminary profiles, delete the entire cache in Xcode, erase the devices, I tried the Push notification with iOS 10 but this did not work. How can i fix this ??

+7
ios xcode ios9 ios10 apple-push-notifications
source share
1 answer

In my case, I found a solution: before iOS 10, we used only a testing certificate for push, it works fine, but after iOS 10 topics do not get when starting the application with Xcode (but they get in TestFlight), after we will create and use a developer certificate to sign clicks - it works again

+3
source share

All Articles