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.
Comments
2 comments