Flutter_local_notifications: Support for profile image (image left of the text)

Created on 15 Jul 2020  路  5Comments  路  Source: MaikuB/flutter_local_notifications

Hi,

Currently the plugin supports displaying an image on the far right end of the notification bar.
Are there any plans to add support for an image (typically a profile image) to be displayed left of the text?

image

Thank you!

All 5 comments

That the image is on the right isn't because of how the plugin works. It's actually because that's how the native APIs work. You can see this in the official docs https://developer.android.com/training/notify-user/expanded#image-style. Even profile images are on the right. So to answer your question, no as the native APIs don't support this to begin with.

Edit: exception here is if you did a custom notification but you'll need to write the code to do this yourself. See https://developer.android.com/training/notify-user/custom-notification

Thank you for your quick response!

Actually, it is possible, using the MessagingStyleInformation !
image

Ah yes. Sorry thought you meant just taking the default style and having the image on left

@yanivshaked this is maybe a custom view which they used in native app code.

Was this page helpful?
0 / 5 - 0 ratings