Search code examples
phpandroidlamp

Sending data from sever to Android Device


I am using LAMP stack in my server and I want to send data from the server to the android device. The android device should not make a request to the server for getting the data , the server will send the data on its own and the android device should receive it using a background service. What should I do?

P.S -> I know GCM and parse.com do this using push notifications but is there any other way?


Solution

  • In General I can see only three options,

    1. Make time to time requests from device to server
    2. Use Google Cloud Messaging
    3. Use a signal R client for android (if you need to use signalR you should use microsoft asp.net instead of LAMP )

    I would like to recommend you GCM way. I haven't use Signal R in android native mobile applications but i have use it in web application development. I have added some links above, hope it will help you.