skip to Main Content

React Native : Navigate to a screen "nested inside BottomTabNavigator" from firebase push notificaiton click

This is a part of my BottomNavigator code in App.js. const Bottom = createBottomTabNavigator(); return ( <Bottom.Navigator tabBarOptions={...}> <Bottom.Screen name="ScreenA" component={ScreenA} options={...} /> <Bottom.Screen name="ScreenB" component={ScreenB} options={...} /> <Bottom.Screen name="ScreenC" component={ScreenC} options={...} /> <Bottom.Screen name="Chat" component={Chat} options={({navigation}) => ({ tabBarLabel:…

VIEW QUESTION

Firebase The token was not issued by the given issuers

Environment: Ionic 6, Firebase 9 and Server on php, (include Firebase Admin SDK for PHP https://firebase-php.readthedocs.io/). const firebaseConfig = { apiKey: "KEY", authDomain: "DOMAIN.firebaseapp.com", projectId: "PROJECT_ID", storageBucket: "STORAGE.appspot.com", messagingSenderId: "SENDER_ID", appId: "APP_ID", measurementId: "M_ID" }; // Initialize Firebase const app…

VIEW QUESTION

Firebase – Convert milliseconds to Firestore date

In Flutter I convert dates to milliseconds like this: static DateTime createDateTimeNow() { return DateTime(DateTime.now().year, DateTime.now().month, DateTime.now().day, 0, 0, 0, 0, 0); } // This create a number value like 1660341600000 final Number millisecondsNow = Helpers.createDateTimeNow().toUtc().millisecondsSinceEpoch; // I can also…

VIEW QUESTION

Firebase – FCM Push Notifications are only displayed when app is in background

I am using the following code to receive and display push notifications: override fun onMessageReceived(remoteMessage: RemoteMessage) { if (remoteMessage.getNotification() != null) { var title : String = remoteMessage.notification!!.title!! var message : String = remoteMessage.notification!!.body!! val intent = Intent(this, LoginCommonActivity::class.java) intent.addflags(intent.FLAG_ACTIVITY_CLEAR_TOP)…

VIEW QUESTION
Back To Top
Search