Skip to content

android: hidden notification when in background#163

Draft
m1ga wants to merge 1 commit intomainfrom
androidBackgroundNotification
Draft

android: hidden notification when in background#163
m1ga wants to merge 1 commit intomainfrom
androidBackgroundNotification

Conversation

@m1ga
Copy link
Copy Markdown
Collaborator

@m1ga m1ga commented May 19, 2025

Current behavior:

when you send a data notification without a title it will handle it as a "hidden" notification and only set an intent for the next app start (as there is no notification). BUT if the app is still running in the background it should still trigger didReceiveMessage. Currently it doesn't as we set showNotification = false.

This PR:

Will return true so it still tries to call didReceiveMessage but still sets the ti.firebase.messaging.hidden-notification in case it was closed.

Testing it with a Slack user at the moment

firebase.cloudmessaging-android-3.5.4.zip

Test:

  • create a push project
  • start the app and put it into the background
  • send a data notification without a title attribute
  • check if didReceiveMessage is called

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant