cordova - VoIP Push Notifications in Ionic for iOS -


from ios 8 can use voip push notifications.

i found this request on phonegap plugin push repository. however, seems it's in status quo state.

so, i'm wondering if of guys have dealt before , if have guidelines?

guys on @ react-native seem have done this.

i ended creating plugin myself. can on npm here.

you can install plugin with:

ionic plugin add cordova-ios-voip-push

and use plugin in ionic/cordova app:

var push = voippushnotification.init();  push.on('registration', function(data) {     log("[ionic] registration callback called");     log(data);      //data.devicetoken;     //do device token (probably save backend service) });  push.on('notification', function(data) {     log("[ionic] notification callback called");     log(data);      // based on received data });  push.on('error', function(e) {     log(e); }); 

there additional steps take in xcode, please refer official plugin site read full tutorial.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -