-
|
I was wondering how we should configure the app to get the notification data when the app is closed before the user click on the notification. I was thinking it would work with the following, but apparently not :/ FirebaseMessaging.addListener('notificationReceived', ({ notification }) => {
// Reading the value here
}Kind regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
If the app is force-closed, then there is no option. If the app has only been pushed to the background and is configured correctly, then the |
Beta Was this translation helpful? Give feedback.
-
|
Also for the one who would be like me loosing himself in this topic. Actually, if you wish to receive the information about the notification a user clicked one while the app is closed, just use FirebaseMessaging.addListener('notificationActionPerformed', ({ notification }) => {
// Reading the value here
} |
Beta Was this translation helpful? Give feedback.
If the app is force-closed, then there is no option. If the app has only been pushed to the background and is configured correctly, then the
notificationReceivedlistener will be called. Best search in the GitHub issues. The topic has already been discussed several times.