firebase-android-sdk icon indicating copy to clipboard operation
firebase-android-sdk copied to clipboard

Conversation Notification Support for Firebase Messaging

Open Shawn-sudo opened this issue 3 years ago • 4 comments

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.

Shawn-sudo avatar Dec 29 '22 01:12 Shawn-sudo

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

google-oss-bot avatar Dec 29 '22 01:12 google-oss-bot

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.

Shawn-sudo avatar Mar 11 '23 15:03 Shawn-sudo

@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 avatar Mar 13 '23 14:03 thatfiredev

Is there any update?

abdullahkaracabey avatar Sep 03 '24 11:09 abdullahkaracabey