Push Notifications with Supabase

I'm using Supabase for authentication and handling FCM manually by getting the token and storing in my Supabase database. Sending standard push notifications work, but I'd like to hand the behavior for other scenarious such as when the app is in the foreground, when I want to pass data with the notification to route the user to a specific page, but haven't seen a way to implement the FirebaseMessaging.onMessage.listen(), FirebaseMessaging.onMessageOpenedApp.listen() and FirebaseMessaging.instance.getInitialMessage() to handle routing when opening the app from a notifcation.

I've got a bunch of code figured out for these but not sure how I can use them as they seem to need to be included in the 'initState' of the MyApp widget which it doesn't seem like we have access to in Flutterflow.

Anyone else implemented custom push notification handling?

9
6 replies