I’m using Phonegap Push Plugin for sending push notifications.My deviceready
event has following functions:-
function onDeviceReady(){
var push = PushNotification.init({
android: {
senderID:'XXXXXXXXX',
iconColor:'blue',
icon:'notify',
alert: true,
badge: true,
sound: true,
vibrate: true
}
});
push.on('registration', function(data) {
//registering device here
});
push.on('notification', function(data) {
//show notification in app front
});
push.on('error', function(e) {
console.log(e.message)
});
}
But when notification arrive, no option works. Default app icon is shown with grey background and no sound as well as vibration occurs.
I know it’s a plugin issue but i believe many devs here who use push notification. If there are any other plugin, you can recommend