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
There are not callbacks like "onMessageOpenedApp" for Foreground.
To redirect the user to a new screen we need to implement onSelectNotifications from flutter_local_notifications. However, this conflicts with firebase_messaging as the RemoteMessage is keep being called back if the notification is open from the background. So basically you need to choose if you redirect the user when you are in foreground or background.
Any insights on how to redirect the user to a specific page on foreground and background would be appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
There are not callbacks like "onMessageOpenedApp" for Foreground.
To redirect the user to a new screen we need to implement onSelectNotifications from flutter_local_notifications. However, this conflicts with firebase_messaging as the RemoteMessage is keep being called back if the notification is open from the background. So basically you need to choose if you redirect the user when you are in foreground or background.
Any insights on how to redirect the user to a specific page on foreground and background would be appreciated.
await flutterLocalNotificationsPlugin.initialize(initializationSettings,
onSelectNotification: (String? payload) async {
});
Beta Was this translation helpful? Give feedback.
All reactions