Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fail to register for remote notifications

After updating Xcode version to 8.0 I'm getting this error. When trying to register for remote notifications I can see in my logs like this

 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}, no valid 'aps-environment' entitlement string found for application

I tried after found some Stack Overflow answers related to my question but not able to solve this.

1.Created new Provisional Profile

2.Deleted and re-installed app

3.Tried to set provisional profile manually.

Any of the above not helped me to solve.

Please give me suggestions. Thanks in advance.

like image 418
Himanth Avatar asked Sep 14 '16 15:09

Himanth


People also ask

How do I turn on remote notifications on my Iphone?

Go to Settings and tap Notifications. Select an app under Notification Style. Under Alerts, choose the alert style that you want. If you turn on Allow Notifications, choose when you want the notifications delivered — immediately or in the scheduled notification summary.

What is remote push notification?

The term Remote Notifications covers Apple Push Notification as well as Google Cloud Messaging. iOS and Android also have local notifications which are sent from an app or from the OS to get the user's attention.


Video Answer


1 Answers

I recently had the same issue. After some non-obvious searching I found out that under iOS 10 and Xcode 8, you now need to enable the Push Notifications capability for your target.

In Xcode, select your target. Go to the Capabilities tab. Enable the Push Notifications capability.

like image 131
rmaddy Avatar answered Sep 19 '22 11:09

rmaddy