Closed egadstar closed 1 year ago
if the notifee onBackgroundEvent is triggered, does that mean the notification was first delivered when the app was in the foreground?
it was running in the background. i figure this is an indicator that i don't have something configured correctly.
use const initialNotification = await notifee.getInitialNotification(); for Android in your home screen to trigger
I'm going to close this issue as it is currently working after adjusting my setup to rely Firebase more and using notifee for covering just the foreground presentation. I'm sure I didn't have the message 100% correct or something else configured correctly. I did notice that I had removed the launchMode from the AndroidManifest at some point; not sure if that would play into it. Thanks for taking the time to look at the issue.
I've looked through the existing issues similar to what I'm experiencing, and nothing has seemed to resolved the issue. The message from FCM looks correct based on the documentation; I'm sending it via the Java SDK. The notifee onBackgroundEvent is triggering on the receive of the message and when the notification is cleared from the tray, but doesn't receive an event on click of the notification from the tray and the app isn't being restored to the foreground. I've also tried targeting SDK 30 and running on an emulator with Android 11; I feel like something has to be configured incorrectly.
"@notifee/react-native": "5.6.0" "@react-native-firebase/app": "15.3.0" "@react-native-firebase/messaging": "15.3.0"
System:
index.js
build.gradle
message.data.notifee received from messaging.setBackgroundMessageHandler
logs