Replies: 1 comment
-
Update: I have bumped my packages to:
An I am still facing the same issue. Any help is appreciated! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First of, thanks for dedicating code to our community.
In my application I implement a custom
FirebaseMessagingService
-- all messages that are sent via push to the client are encrypted. Therefore I need to intercept all pushes to be able to decrypt the notification body and title. Everything works fine: I am able to receive the message on theonMessageReceived()
method. I then decrypt and create a new local notification:The notification is successfully displayed to the user, even if the app is on dead state. I also receive the callback from
messaging().setBackgroundMessageHandler()
just fine. My issue is that I am trying to detect if the user tapped the notification to open the app, but neither theonNotificationOpenedApp()
ormessaging().getInitialNotification()
is triggered.Moreover, these listeners do work fine if I just send a notification with a
"notification": { "title": "test" }"
; however that makes the OS to not pass that through my customFirebaseMessagingService
and display rightaway to the user.I tried digging into the source code and I realized that maybe my custom
FirebaseMessagingService
was not setting some expected properties inside theintent
that I am creating. Therefore I tried adding the following code, but with no success as well:Does anyone have any insight on how I can make my custom created notification being able to be detected by the
onNotificationOpenedApp()
callback?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions