Skip to content Skip to sidebar Skip to footer

Sending Notification (few Data) From Php Server Side App To Android Client Side App

How can I send data from my PHP server side App to Android Client Side App in terms of Notification or something else i dont want to use C2DM ,is there any other Alternative. I wa

Solution 1:

A http communication between a Server and a Client is usually started by a client-request. Android has no service running which could be requested by the php server side, as an event happens. So the only way I could imagine is to use reverse ajax in this case. Maybe take a look here: Reverse Ajax implementation using php

Solution 2:

The best thing is to create background service that will check i.e every 10 minutes if content has changed. You could check it by adding simple revision number on server side and then compare it with saved on android. If something has changed download all/specific content.

Post a Comment for "Sending Notification (few Data) From Php Server Side App To Android Client Side App"