Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
123 views
in Technique[技术] by (71.8m points)

How to push a notification with a large image to an android device

I am able to push notification using Firebase/FCM. But only with small icons. I am also able to create notifications in my app with a large image.

But how can I push a notification with a large image (at least an image on the right side)?

I can do it only if my app is in the foreground => pushing a data payload which I intercept using onmessagereceived and then showing a large image notification.

But this doesnt work if the app is in the background (as only notification are then directly pushable).

How can I fix my dilemma?

Thanks

question from:https://stackoverflow.com/questions/65898008/how-to-push-a-notification-with-a-large-image-to-an-android-device

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...