evollu / evollu/react-native-fcm
ANDROID : can't find notificationID
- Dominant language
- Java
- Stars
- 1.7k
- Forks
- 661
- PR merge metrics
- No merged PRs in 30d
Description
1. What version of RN and react-native-fcm are you running :
RN0.54 / "react-native-fcm": "14.1.3"
2. What device are you using?
Samsung S7
3. Is your app running in foreground, background or not running?
This is a general case, the notificationID is simply not there.
```
FCM.on(FCMEvent.Notification, notif => {
console.log('notif', notif)
// notif.notificationID === null ...
const { status, notification: { deliveredNotifications } } = getState()
deliveredNotifications.forEach(notifId => FCM.removeDeliveredNotification(notifId))
dispatch(notificationActions.removeAllDeliveredNotifications())
dispatch(notificationActions.deliveredOneNotification(notif.notificationID))
if (notif.status_id) {
if (!notif.opened_from_tray) {
_showLocalNotification(notif)
}
_dispatchNotif(dispatch, notif)
}
})
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.