how to sync data between android app and php server? -


i trying sync data between android application , php server.

in application use json webservices data php server.

now whenever there new fields added php server database app should reflect immediately.

its kind of background services everytime new data php server database.

how can ?

if need immediately, should consider using gcm.

this sentence on gcm's front page:

send data server users' android-powered devices. lightweight message telling app there new data fetched server

what need make backend notify gcm new data (via gcm's web service). then, it's gcm's responsibility deliver message app. it'll launch app when it's not running.

as specific solution, have 2 possibilities: either backend "ping" app via gcm, , app fetch data itself, or, if update small, backend send app directly in gcm message.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -