I am struggling with sending Push Notification using the react-native-firebase
.
There are somethings strange. Sometimes, the iOS app work perfectly, but sometimes, it receives the Push Notification ONLY in onMessage
, which is terribly wrong.
I am using:
- React-native: 0.61.5
- React-native-firebase: 5.6.0
- Latest version of Firebase/Core and Firebase/Messaging
- Push Notification (added for both debug and release)
- Remote Notifications (added)
Please help me guys if you faced this issue before.
Below is the response message from Firebase when it come to onMessage
function:
_messageListener
{"_collapseKey":"always_is_app_bundle_id","_data":{},"_from":"595939737681","_messageId":"-M26mNVZo-WhP5ev8dDN","_ttl":3600}
Many thanks!