Reputation: 19
Error log:
Unable to receive push notification after configuring Bluemix Push Service.
Failed to get token from APNS, error: Error Domain=NSCocoaErrorDomain
Code=3000 "no valid 'aps-environment' entitlement string found for application"
UserInfo=0x17595e20 {NSLocalizedDescription=no valid 'aps-environment' entitlement
string found for application}
-----------------------------------------------------------
This error means I am unable to receive notification from Bluemix.
How can I fix this?
Upvotes: 1
Views: 359
Reputation: 294
This seems a duplicate question asked already in stackoverflow:
Getting an error from push notification
You can use the solution provided in the above link.
Upvotes: 1
Reputation: 111
First, you need to make sure you use an app ID without a wildcard. Then you need to enable that app for push notifications for development.
Below is getting started link for reference:
https://ameyashetti.wordpress.com/2009/07/31/apple-push-notification-service-tutorial/
Even after you've enabled your app id for push, it might take a couple of hours for it to work.
Upvotes: 0
Reputation: 387
I think the best way to do this is following these steps :
Create .mobileprovision file before enable APNS.
1: Create App ID 2: Enable APNS 3: Then create Provision File
delete provisioning file from everywhere in your system(XCode,keychain,iTuneConnect). And then create provisioning file again.
Upvotes: 0
Reputation: 645
If you created your provisioning profile before configuring the app ID for push, try to regenerate the provisioning profile.
iOS Provisioning Portal -> Provisioning -> Your cert -> EDIT -> Make an edit -> Download new provisioning
it should work!!
Upvotes: 0
Reputation: 29
Check the following solutions which I found - 1. Generate a new provisioning profile, after you enable Push, and it should work
Make sure you use an app ID without a wildcard. Then you need to enable that app for push notifications for development. It may take couple of hours to start working
Make sure in Built Settings, Code Signing Identity for debug is set to proper Provisioning Profile in which you enabled push notifications.
Source for further details:- Getting an error from push notification
Upvotes: 1