I have implemented custom push notifications (using FCM and Supabase) - all works fine, but now I want to redirect the user to a page defined by the data content of the notification.
The handlers of incoming push notifications (FirebaseMessaging.onMessageOpenedApp.listen() and FirebaseMessaging.onBackgroundMessage() ) have to be set up in main.dart via adding a custom action to "Final actions". My problem is that Flutterflow allows to add only such functions that don't have any parameters, including the buildcontext. Therefore I can't use context.pushNamed(target) as I would do normally.
1. Is there a way to determine the currentcontext?
2. Is there any other way to navigate to a set page without having the currentcontext?