Reputation: 313
I've been receiving HTML5 pushes from different websites and some of them include images.
I couldn't find in the FCM documentation how to send images; is it possible?
Thanks
Upvotes: 1
Views: 2092
Reputation: 37778
This is not the usual use-case for Push Notifications. For FCM, it is strongly advised not to send over images (if ever you manage to), primarily because of the payload size limit - 2KB for notification
, 4KB for data
.
I suggest using Firebase Storage for storing the images, then downloading it in the client when needed, sending the download URL in the push notification as a workaround.
Upvotes: 3