Open whenmoon opened 4 years ago
I have figured out that my issue is actually the same issue as this one.
hi if you are using react native firebase v >6, as they say:
This method must be called outside of your application lifecycle, e.g. alongside your AppRegistry.registerComponent() method call at the the entry point of your application code.
setBackgroundMessageHandler
i use it and it work's fine
but the the app open's and NativeEventEmitter
is not working
PS : DeviceEventEmitter
is deprecated as in stackoverflow Question
if you have another idea please share it
You need to be "Allowed" "Display over other apps" from "App Info" manually.
You need to be "Allowed" "Display over other apps" from "App Info" manually.
Thank you so much. Helped me a lot
I am receiving data only Firebase Cloud Messages when my Android React Native app is in the background or is killed. Here is my headless task:
Inside my backgroundMessaging function I have this code:
When the app is in the background the above function logs the
message
, butinvokeApp
does not seem to be called because theDeviceEventEmitter
does not log anything:However, when the app is killed (not in background), once I open the app the
DeviceEventEmitter
function logs thelogMessage
.At no point does the app come to the foreground.