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

How do I display an image in my notification? #153

Closed
mrousavy opened this issue Jul 15, 2020 · 8 comments
Closed

How do I display an image in my notification? #153

mrousavy opened this issue Jul 15, 2020 · 8 comments

Comments

@mrousavy
Copy link

Question

Hi! I'm sending an imageUrl property to my user via the Firebase Cloud Messaging API, so my request looks like this:

token: token,
notification: {
	imageUrl: imageUrl,
	title: chatTitle,
	body: messagePrefix + message.message,
}

Now how do I display the image (imageUrl) in my notification?

@AmnaHijjawi
Copy link

+1

@thuynt99
Copy link

I can't not show image in foreground but i can show in background? Any solution to fix that?

@andrew-stupchuk
Copy link

andrew-stupchuk commented Jan 20, 2021

+1
@thuynt99 did you find the way to show it?

@rjuevesano
Copy link

+1

@sujitgawas19
Copy link

+1
any update on this?

@BunHouth
Copy link

BunHouth commented Mar 9, 2021

please kindly check this #255 (comment)

@Naturalclar
Copy link
Collaborator

Rich notification with Image Support has been added in v1.9.0 🎉

@vibhumishra74
Copy link

token: token,
notification: {
imageUrl: imageUrl,
title: chatTitle,
body: messagePrefix + message.message,
}

replace imageUrl with image and one valid url with 2:1 aspect ratio

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

No branches or pull requests

9 participants