I have a Cordova project
This is my code:
try{
alert(window.PushNotification)
var push = window.PushNotification.init({
android: {
senderID: this.$appInfo.NotificationSenderID,
},
ios: {
alert: "true",
badge: "true",
sound: "true",
clearBadge: true,
},
windows: {},
});
}catch(e){
alert(e)
}
This code in iOS is working but not working in android
It will alert ‘undefined ’
I try anyway as I can search but didn’t find solution
Can any give any solution can fixed it
I have a Cordova project
This is my code:
try{
alert(window.PushNotification)
var push = window.PushNotification.init({
android: {
senderID: this.$appInfo.NotificationSenderID,
},
ios: {
alert: "true",
badge: "true",
sound: "true",
clearBadge: true,
},
windows: {},
});
}catch(e){
alert(e)
}
This code in iOS is working but not working in android
It will alert ‘undefined ’
I try anyway as I can search but didn’t find solution
Can any give any solution can fixed it