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 ??
ios xcode ios9 ios10 apple-push-notifications
Sergio
source share