react-native-fcm

react-native-firebase unable to handle notification click_action to navigate to notification screen

瘦欲@ 提交于 2019-12-13 16:50:24
问题 i'm using this react-native-firebase and react-navigation for navigating and i can push notification from server or console successfully whether its in foreground or background but i swear the documentation is not pretty clear how to open notification and navigate to the notification screen it belongs to. these are my onMessage codes. firebase.messaging().onMessage((payload) => { if(!payload.opened_from_tray){ firebase.messaging().createLocalNotification({ title: payload.title, body: payload

Fcm Notification not Coming when App is in Kill State in React Native

瘦欲@ 提交于 2019-12-11 18:19:52
问题 When sending from FCM i.e Firebase console in react native it is easily coming in iOS and Android both but when i am sending notification from admin or backend side it is not coming when app is in kill state. I am using react-native-fcm . Thanx . <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.VIBRATE"/> <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> <uses-permission android:name="android.permission

Showing fcm notification message in JSON format when app is killed or in background in react-native-fcm

◇◆丶佛笑我妖孽 提交于 2019-12-04 12:31:41
问题 I am using react-native-fcm library for android device. I am getting notification properly when my application is running, but when my application is in the background or killed then I am getting notification data in JSON format similarly in an image I shared here. componentDidMount() { // iOS: show permission prompt for the first call. later just check permission in user settings // Android: check permission in user settings FCM.requestPermissions().then(()=>console.log('granted')).catch(()=