fechanique / cordova-plugin-fcm

Google FCM Push Notifications Cordova Plugin
624 stars 991 forks source link

Notifications are not received yet #616

Open ahmedfarag2010 opened 4 years ago

ahmedfarag2010 commented 4 years ago

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.