cordova-plugin-unvired-push-sdk
v0.0.2
Published
Register and receive APNS push notifications.
Downloads
33
Maintainers
Readme
cordova-plugin-unvired-push-sdk
Register and receive APNS push notifications
Install
Install via npm :- cordova plugin add cordova-plugin-unvired-push-sdk
Usage
var push = window['APNSPushNotification'].init({
ios: {
alert: "true",
badge: "true",
sound: "true"
}
});
push.on('registration', (data) => {
// data.registrationId
this.sendRegDetails(data.registrationId);
});
push.on('notification', (data) => {
window['cordova'].plugins.notification.local.schedule({
title: data.title,
text: data.message,
sound: data.sound,
at: new Date().getTime()
});
});
push.on('error', (e) => {
// e.message
console.error(e);
});
Supported Platforms
- iOS
More about us
Find out more or contact us directly here :- http://www.neutrinos.co/
Facebook :- https://www.facebook.com/Neutrinos.co/ LinkedIn :- https://www.linkedin.com/company/25057297/ Twitter :- https://twitter.com/Neutrinosco Instagram :- https://www.instagram.com/neutrinos.co/