The notification are not received yet when i remove alert(JSON.stringify(data))
FCMPlugin.onNotification(function(data){ if(data.wasTapped){ //Notification was received on device tray and tapped by the user. alert( JSON.stringify(data) ); }else{ //Notification was received in foreground. Maybe the user needs to be notified. alert( JSON.stringify(data) ); } });
The notification are not received yet when i remove alert(JSON.stringify(data))
FCMPlugin.onNotification(function(data){ if(data.wasTapped){ //Notification was received on device tray and tapped by the user. alert( JSON.stringify(data) ); }else{ //Notification was received in foreground. Maybe the user needs to be notified. alert( JSON.stringify(data) ); } });
If i alert it again .. its works fine.