Phonegap v 6.0 Opting out automatically after push sent IOS 10

After updating to phonegap uairship-cordova 6.0 I am able to check that the iOS settings notifications for my app is enabled and I have setUserNotifications to enabled in the app itself. I get the channel id from the console. I then pull down all the channels through the UA api (api/channels) and I verify that it is installed, opted in, etc is all true. Then I do a simple push to the target channel id.

{
"audience": {
"ios_channel": "<channel id i got from console copied and pasted and verified through api channels>"
},
"notification": {
"alert": "Test!"
},
"device_types": "all"
}

I do not get a push and when I do UA channels get request again (api/channels) I go to the same channel ID and no it is installed, opt_in, background is now false

I made sure my push notifications are enabled in the app id, the xcode capabilities and with the correct app key and secret in the app. This might be an iOS 10 problem. I can't verify if the problem exists in ios 9 because i updated my phones.

Didn't find what you were looking for?

New post

Comments

2 comments

  • Hi Polo,

    This issue is usually related to the provisioning profile or APNS certificate for the app and your device.

    This article on Rejected Device Tokens has some good information on this topic.

    This issue is not related to Cordova, and you may have to open the Xcode project that Cordova generates to fix the provisioning profile.

    Please let me know if you have any other questions or concerns.

    Thank you,
    Sean Conlin
    Urban Airship Technical Support
    Portland, Oregon

    Comment actions Permalink
    0
  • Hey Sean,

    I read the article and double checked my provisioning profile and my phone. I was able to use another push service when I removed UAirship with the same device and certificate and it worked. However I'd rather use UAirship because the back end is already programmed. The error console says that the push token is still being rejected.

    I'm not sure what else I could do to debug this problem. 

    Comment actions Permalink
    0

Please sign in to leave a comment.