Home » Android » How to show big images using Firebase Cloud Messaging in Android?

How to show big images using Firebase Cloud Messaging in Android?

Posted by: admin October 27, 2017 Leave a comment

Questions:

I want to broadcast to all users when a blog is posted.
Each blog has an image or video.

Broadcasting with normal text is not a problem, but I should show posted image or video in Android notification.

I have found the following link: http://androidbash.com/firebase-push-notification-android/

However I still strugle on how to solve this issue.

Answers:

From official Firebase FAQ:

Message Type
Notifications up to 2kb
Data messages up to 4kb

So instead of trying to push image inside message, your application should do differently (for example using webview with image URL).

Leave a Reply

Your email address will not be published. Required fields are marked *