Replies: 8 comments 28 replies
-
I think you'll find interesting information in the log output from |
Beta Was this translation helpful? Give feedback.
-
same problem |
Beta Was this translation helpful? Give feedback.
-
same problem. do you already have a solution? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I created index.ts in the root directory, and it worked index.ts
i also remove the "main: expo-router/entry" inside the package.json |
Beta Was this translation helpful? Give feedback.
-
it should be in your root dir
|
Beta Was this translation helpful? Give feedback.
-
same problem |
Beta Was this translation helpful? Give feedback.
-
Hi, Have a solution that works perfectly - for ANDROID only. I don't understand it as well as some of you might (just a hobby developer), but let me share the Working Solution & what I think is the issue The issue seems to be that we need to register these notifee listeners outside the App Context. However, with Expo Router there's nothing like registering the Root component & so no way for us to register these listeners outside the App Context. The solution lay somewhere in the Expo documentation which said that we can access App Context in a certain way. So the final solution that worked for me was:
Now your notifee background listener will work in the Quit state too. Hurray ! I have tried this & it works perfectly. |
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