skip to Main Content

Firebase messaging onMessageOpenedApp

I am sending notification with firebase, when click on notification I want to redirect to a page in webview, how can I do that? FirebaseMessaging.onMessageOpenedApp.listen((RemoteMessagemessage) { Navigator.push( context, MaterialPageRoute( builder: (context) => , )); });

VIEW QUESTION

Flutter firebase messaging doesn't get notifications from firebase functions

Firebase functions: const functions = require("firebase-functions"); const admin = require('firebase-admin'); admin.initializeApp(); exports.chatNotifications = functions.firestore.document("chat/{docId}").onCreate( (snapshot, context) => { admin.messaging().sendToTopic( "chat", { notification: {title: "New message", body: "A new message has been sent"}, data: {click_action: "FLUTTER_NOTIFICATION_CLICK"}, } ); } ); Flutter:…

VIEW QUESTION
Back To Top
Search