skip to Main Content

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