Wednesday, September 28, 2022
HomeiOS Developmentandroid - Flutter - Firebase Messaging Throughout a Terminated State

android – Flutter – Firebase Messaging Throughout a Terminated State


I’ve a use case the place I want to find out if a consumer has opened the app from the app icon or from a push notification.

I’m utilizing these to test for Distant Notifications:

FirebaseMessaging.occasion.getInitialMessage(); // Terminated State
FirebaseMessaging.onMessageOpenedApp.pay attention((RemoteMessage? occasion) {}); // Backgrounded State
FirebaseMessaging.onMessage.pay attention((msg) {});

The issue I’ve is with getInitialMessage the place if I’m in a terminated state and I obtain a notification when tapping the app icon I’m redirected to a Web page for that notification vs. going to my house web page.

Is there a selected option to detect {that a} consumer has opened the app by tapping on a notification? Or is there a greater means to make use of these and route customers?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments