-1

Any one knows how to send Images through android chat application using GCM. I have not found any proper answer for this question. Any help is appreciated.

Faisal TP
  • 19
  • 4

2 Answers2

1

Yes you can send Image in the payload of the GCM, but the size must be less then 4096 Byte. Here is a list of resource.

Suggestion: It is better to send a link of this image using GCM after that you can retrieve the image from this link in the client side. In this way you can improve the response time for Group/Room messaging.

Community
  • 1
  • 1
BeingMIAkashs
  • 1,375
  • 11
  • 18
0

The suggestion given by BeingMIAkashs is correct. You can send, a URL from GCM server to the target device. The client app, can then perform a download of your image. Once the image is downloaded, then you can create a notification in your app and show it to the user.

Utkarsh Mankad
  • 247
  • 1
  • 6
  • 18