Ok, I feel like I’ve tried everything at this point, so I’m hoping someone can tell me where I’m going wrong. I’ve set up everything as per the docs. I register a user like:
Ionic.io();
var user = Ionic.User.current();
user.id = '14';
var push = new Ionic.Push();
var callback = function(pushToken) {
console.log('Registered token:', pushToken.token);
user.addPushToken(pushToken);
user.save();
}
//register the device for push alerts
push.register(callback);
This gives me success info in the console and I can see my user in the ionic users dashboard and associated token for push alerts.
I used a cocoa rest client to test the notifications via REST service
{
"user_ids":["14"],
"notification":{
"alert":"Hello World!"
}
}
and check the status of the notification
{
"status": "Sent",
"errors": [
],
"android": {
"failure_reason": "",
"success": false,
"sent": 0
},
"ios": {
"failure_reason": "",
"success": true,
"sent": 1
},
"app_id": "*******"
}
All seems well. I’ve made sure to:
- disable dev push.
- upload my certificate
- enable the push entitlement for my app ID in Xcode
- Install the phone gap push plugin
Yet NOTHING comes through on my device. I’m lost, what am I missing? The only related error/issue I can see is in Xcode with the phone gap push plugin in PushPlugin.h which says: Cannot find protocol definition for ‘GGLInstanceIDDelegate’ which seems to give rise to over 200 other warnings related to the plugin.
Cordova CLI: 6.0.0
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.1.1
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X El Capitan
Node Version: v0.12.2
Xcode version: Xcode 7.1.1 Build version 7B1005