I ended up creating the plugin myself. You can get it on npm here.
You can install the plugin with:
ionic plugin add cordova-ios-voip-push
and then use the plugin like this in your Ionic/Cordova app:
var push = VoIPPushNotification.init();
push.on('registration', function(data) {
log("[Ionic] registration callback called");
log(data);
//data.deviceToken;
//do something with the device token (probably save it to your backend service)
});
push.on('notification', function(data) {
log("[Ionic] notification callback called");
log(data);
// do something based on received data
});
push.on('error', function(e) {
log(e);
});
There are some additional steps to take in Xcode, so please refer to the official plugin site to read the full tutorial.
As I’ve mentioned there, I’m mentioning here as well:
I don’t ‘do’ ObjectiveC for a living (but I may change my mind after completing this :)), so I would really appreciate the constructive feedback in making this plugin better, and I look forward to your comments and potential pull requests!