I am using Xcode8, swift 3, iOS 10
In Targets -> capabilities showing "add the Push notification feature to your app id".
I check my APP ID and it is showing pushnotfication enabled in both development and distribution.
With same APP IS and certificate I am getting notification in iOS9 but in iOS 10 i am getting 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}
and also showing red mark (issue)
What are Push Notifications? Push notifications are messages to users to drive revenue, build audience relationships, and get users back into the mobile app or website. For maximum user engagement, a push notification campaign should grab a user's attention with a quick-to-the-point alert and call to action.
Nothing will interrupt you, but all the notifications will still appear when you pull down the windowshade. On Android, you can choose "Show Silently," a similar setup. It's not like turning off notifications shuts you out from using the apps you like.
I restarted XCode and it was gone :-)
Close Xcode -> reopen -> clean -> build -> run.
Fixed the issue for me. Xcode 9.0.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With