Replies: 3 comments · 1 reply
-
I think you'll find interesting information in the log output from |
Beta Was this translation helpful? Give feedback.
All reactions
-
@mikehardy - Thank you for taking the time to respond. Over the last 2 days, I spent my time analyzing the adb logcat with different combinations, but wasn't able to get much except that the Headless task is not registered - which is probably owing to my placing the setbackgroundhandler in the wrong location. But beyond index.js & root layout, I am not able to think of any other place to put it in an Expo Router based app. I have scoured the internet for weeks & haven't found any good direction on this. Here are the excerpts from logcat of what I beleive is relevant with the key items I saw in bold . Any pointers to helping me use the wonderful rnfirebase in Expo Router based apps will be very helpful. Thank you.
02-07 22:10:17.652 2622 2763 I ActivityManager: Start proc 885:com.myownapp.app/u0a493 for broadcast {com.myownapp.app/io.invertase.firebase.messaging.ReactNativeFirebaseMessagingReceiver} SetbackgroundHandler is in the _layout.js (RootLayout): 02-07 21:40:31.722 1200 1267 I ActivityManager: Start proc 22766:com.myownapp.app/u0a346 for broadcast {com.myownapp.app/io.invertase.firebase.messaging.ReactNativeFirebaseMessagingReceiver} |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
same problem |
Beta Was this translation helpful? Give feedback.
All reactions
-
same problem. do you already have a solution? |
Beta Was this translation helpful? Give feedback.
-
I am trying to use RNFirebase to handle notifications in an Expo app using Expo Router V2. I am using a EAS Development Build and I am using an Android device to test. My Project structure mimics the standard Expo Tabs template - https://github.com/expo/expo/tree/main/templates/expo-template-tabs
What Works ?
The RNFirebase Notif handling works perfectly both in Foreground & Background mode.
What does NOT work ?
Notification is not handled when the App is Quit. I have tried a simple API hit and the use of Notifee to show a notification in the Background Message Handler.
Note that the RNFirebase works in Foreground & Background mode well. It's only Quit mode that does nothing. So the message handling code doesn't seem to be an issue.
Any help / pointers to what will help me get RNFirebase to work with Expo Router V2 when the app is Quit ?
Beta Was this translation helpful? Give feedback.
All reactions