skip to Main Content

FCM FirebaseMessaging.onMessageOpenedApp Won't work

Although all the other functions work perfectly, I receive the message and display it in all conditions, in the background, foreground or initial message. in the background: Future<void> backgroundHandler(RemoteMessage message) async { print(message.data.toString()); print(message.notification!.title); } FirebaseMessaging.onBackgroundMessage(backgroundHandler); in the foreground: FirebaseMessaging.onMessage.listen((message)…

VIEW QUESTION
Back To Top
Search