I'm building an app in react native, and I attached react-native-fcm
library to the code, in order to work with notification messages.
I have two main problems:
1) Notification from the firebase
doesn't look like the ordinary notification messages: it's not appear with app icon, it doesn't popup and presented when the screen is closed.
2) I wanted just to get the event of messaging, also here after reviewing the library code, I saw that notification get to the function: onMessageReceived
only if the app on foreground, like it say in the website.
But in the website I couldn't understand how to get the general event of catching notificaiton regardless to the appstate.
I also tried to implement class that extends FirebaseMessagingService
, and there the notification doesn't get to the onMessageReceived
override at all.