I've tried to adapt my application to iOS 10, but I am facing issues with push notification. I have tested push in two devices with iOS 9 and iOS 10. In my application in Capabilities push notification does not switch on, but application work fine in iOS 8 and iOS 9, but in iOS 10 i can't take token with error:
Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application"
I found solution, in my case: Before iOS 10 we used only Production sertificate to test push, it work fine, but after iOS 10 pushes do not receive in app runing with Xсode(but receive in TestFlight), after we create and use developer certificate to sign pushes - it work again