Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation Notification Support for Firebase Messaging #4500

Open
Shawn-sudo opened this issue Dec 29, 2022 · 3 comments
Open

Conversation Notification Support for Firebase Messaging #4500

Shawn-sudo opened this issue Dec 29, 2022 · 3 comments
Labels

Comments

@Shawn-sudo
Copy link

What feature would you like to see?

Android 11 has recently introduced conversation notification, which allows us to display the user's profile photo on the notification.

To support Conversation Notifications on Android, I would have to use something like didReceive() on iOS to modify the notification. However, onMessageReceived() currently doesn't work for background notification message (or notification + data messages).

I also couldn't find an option for Conversation Notification in the REST API or smth (server-side) list: https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages

I'm not talking about imageUrl or image option in the REST API (here): imageUrl only seems to work for image attachments, but not for profile photos.

How would you use it?

I would use it to display profile photo in a notification on Android devices.

@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@Shawn-sudo
Copy link
Author

I solved this by overriding handleIntent(). Although this isn't the official way, it was the only reasonable way to modify notifications on receive regardless of the app lifecycle.

@thatfiredev
Copy link
Member

@Shawn-sudo glad to hear you worked around your issue. I'll keep this issue open for the team to consider as a feature request.

@thatfiredev thatfiredev reopened this Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants