Reputation: 1451
How to attach the image in push notification with Google Cloud Messaging ..Is it is possible to attach image, can any one tell how to attach..(or) it is possible like attach image in the form of URL/Text.. please provide me some sample example..
Upvotes: 1
Views: 2670
Reputation: 13761
I don't think that's the correct approach. Each GCM
message is limited to 4KB
of data, so unless you want to send messages as it was somekind of TCP
protocol, you shouldn't use it.
Sending images is probably better to be done with a HTTP POST
request to the remote server (as the GCM
architecture requires), and afterwards process it.
Upvotes: 0
Reputation: 1073
Maximum size of the push message can be upto 4KB. Therefore it is recommended to put the image on server somewhere and pass the url link of that image via push.
Upvotes: 1