Register and receive APNS push notifications
Install via npm :- cordova plugin add cordova-plugin-apns-push
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);
});
- iOS
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/