SFRohan

Results comments of SFRohan

This will work for you. Notification will be shown when the app is in background and also when it's in foreground (open) : ``` FCM.on(FCMEvent.Notification, notif => { // if...

` local_notification: true` has been added to avoid infinite loop of messages on iOS device.

Hi @zootopia106 , yes you would need to integrate FCM for this from "react-native-fcm"

@zootopia106 , i use firebase in my project. No need for react-native-push-notification. With firebase, you can also test messages/PN's from their console on their website. ``` import FCM, { FCMEvent,...

Hi @woniesong92 , unfortunately I am facing the same issue but the solution didn't work for me. My code: ``` FCM.requestPermissions() .then(() => console.log("granted")) .catch(() => console.log("notification permission rejected")) FCM.getFCMToken().then(token...