You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Dart VM does not run while the app is in the background. That means you have to handle notifications and data messages in native code (Java/Kotlin/ObjectiveC/Swift).
To do this on Android, refer to the official documentation.
You will probably have to remove the firebase_messaging plugin and do all the message handling manually. To send the notification content to your flutter app (while it is in foreground), use platform channels.
It really helps to look at the source code of the firebase_messaging plugin to see what happens on the native side.
Steps to reproduce:
Open the app
Expected result:
On clicking the notification user should be navigated to the news tab
Actual result:
User is navigated to last used screen ( As per the test case it is not the news tab)
The text was updated successfully, but these errors were encountered: