I have problem with notf. when i send a notif. from Firebase.console (https://console.firebase.google.com)
Notification popup is come on navigation bar but when i send a notif. from my Admin panel it will only show a json.(In CMD) No popup no any icon show in navigation bar What Should i do for that
Plz. Help me for that
I will also mention both Response Here
1) Response Come When I send A Notification From Firebase.console is that :-
I have problem with notf. when i send a notif. from Firebase.console (https://console.firebase.google.com) Notification popup is come on navigation bar but when i send a notif. from my Admin panel it will only show a json.(In CMD) No popup no any icon show in navigation bar What Should i do for that Plz. Help me for that
I will also mention both Response Here 1) Response Come When I send A Notification From Firebase.console is that :-
2) Response Come When I send A Notification From My Admin Penal is that 👎
If any One Understand any problem so please help me for that
i will use a lib. npm react-native-fcm ?
For Message Show in forground I will use This code in App.js
componentDidMount(){ FCM.on(FCMEvent.Notification, notif => { // if (notif.fcm && notif.fcm.body) { / Create local notification for showing in a foreground / console.log(" success register fcm >> notificationListener: ", notif) // if (notif.local_notification) return; FCM.presentLocalNotification({ body: notif.fcm.body, priority: "high", title: notif.fcm.title, sound: "default", show_in_foreground: true, local_notification: true, auto_cancel:true, lights:true, "large_icon": "ic_launcher",// Android only icon: "ic_launcher", "show_in_foreground": true, / notification when app is in foreground (local & remote)/ vibrate: 300, / Android only default: 300, no vibration if you pass null/ "lights": true, // Android only, LED blinking (default false) status: "400" }); }) }