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 – 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

Cannot add Push Notifications to Debug in Xcode 13

I get the following error in the console when running the app: [Firebase/Messaging][I-FCM012002] Error in application:didFailToRegisterForRemoteNotificationsWithError: no valid “aps-environment” entitlement string found for application In Capabilities I have added "Push Notifications" but it only seems to be added to the…

VIEW QUESTION
Back To Top
Search