evollu / react-native-fcm

react native module for firebase cloud messaging and local notification
MIT License
1.73k stars 681 forks source link

> If you are setting data together with notification. Data will be ignored in Android when the app is in the background. Is this what you are expecting? #1110

Open Sumit-Chakole opened 5 years ago

Sumit-Chakole commented 5 years ago

If you are setting data together with notification. Data will be ignored in Android when the app is in the background. Is this what you are expecting?

I get notification data when app is running (in callback) but when app is not running and notification arrives, it shown in notification drawer but data is not received in getInitialNotification() method when clicked on notification.

Originally posted by @Sumit-Chakole in https://github.com/evollu/react-native-fcm/issues/926#issuecomment-482121772