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

Firebase – FCM working in emulator, but not on real device

Main Activity package com.example.pone import android.content.ContentValues.TAG import android.content.Context import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.text.TextUtils import android.util.Log import com.google.firebase.messaging.FirebaseMessaging import com.google.gson.Gson import kotlinx.android.synthetic.main.activity_main.* import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch const val TOPIC = "/topics/myTopic2" class MainActivity : AppCompatActivity() { override fun…

VIEW QUESTION

How to open app to specific page after click notification from bar by using react-native-firebase/messaging(FCM)? – React native

Is there any way can open app to specific page after click notification by using react-native-firebase/messaging(FCM)? I didn't find information from document. @react-native-firebase version: "@react-native-firebase/app": "^15.3.0", "@react-native-firebase/messaging": "^15.3.0", code just only: /** * Sample React Native App * https://github.com/facebook/react-native *…

VIEW QUESTION
Back To Top
Search