user1918034
user1918034

Reputation: 191

How to send media from server to android app?

I am working on an Android app. I want to send images and videos from my server to my Android app. GCM allows only 4kb of data to be sent, but media files are generally of larger size so how to do this?

Upvotes: 6

Views: 2750

Answers (3)

selsine
selsine

Reputation: 2813

I actually wrote two blogs posts on this. The first one shows how to send a link in the payload and then download the files using the URL.

The second shows how to send small images as part of the 4K payload.

Upvotes: 4

Lin-Art
Lin-Art

Reputation: 4943

You don't send it over to your client using gcm. You use gcm to inform the client about new stuff to fetch from your server / the cloud.

Read the gcm-docs and the "send-to-sync" idea under advanced topics.

Check the Google IO web-api video (~ minute 30) for the big picture Google I/O 2012 and the files in android-sdk/extras/google/gcm/samples

Upvotes: 6

Vishal Pawar
Vishal Pawar

Reputation: 4340

Store the media (images, video etc.) on your server & send link of them through GCM to android app.

Upvotes: 1

Related Questions