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.
Asked
Active
Viewed 2,333 times
-1
-
You could have at least add some code to show us what you tried. – T-D Jul 17 '15 at 23:07
2 Answers
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
-
-
-
I am currently done by uploading the images to server and sending the uploaded image link to the user. But i don't get an idea on how to manage the received image. – Faisal TP Jan 04 '15 at 06:04
-
Is there any way to create multiple image views and managing the received images in android chat application – Faisal TP Jan 04 '15 at 07:50
-
yes you can, use relative or framelayout for multiple image view. – BeingMIAkashs Jan 04 '15 at 07:58
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