Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why "add Push notification feature to your app id" warning even after push-notification showing enabled in App ID?

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)

like image 426
New iOS Dev Avatar asked Nov 09 '16 10:11

New iOS Dev


People also ask

What is the purpose of push notifications?

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.

What happens if I disable push notifications?

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.


2 Answers

I restarted XCode and it was gone :-)

like image 75
SteMa Avatar answered Oct 03 '22 20:10

SteMa


Close Xcode -> reopen -> clean -> build -> run.

Fixed the issue for me. Xcode 9.0.

like image 24
DBIT Avatar answered Oct 03 '22 20:10

DBIT