evollu / evollu/react-native-fcm

No data delivered with `custom_notification`

Open
#584 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.7k
Forks
661
PR merge metrics
No merged PRs in 30d

Description

`react-native@0.48.4`
`react-native-fcm@9.7.0`

Our app works fine with ordinary GCM notifications, but I wanted to use the `custom_notification` feature in order to run some logic on receiving background messages. However, when the app ‘wakes up’ on clicking either the library’s generated notification, or a manually created local notification via `FCM.presentLocalNotification()`, the notification that arrives through `FCM.getInitialNotification()` contains no data: only the flag `opened_from_drawer` and an empty `fcm: {}`. I’ve previously seen that when I had misconfigured the Android manifest and the intent matching the `click_action` was not associated with the main activity; but as mentioned above, it’s now working fine with regular GCM notifications.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.