Push notification on a local network (case without internet)

2

I've studied the GCM services to send and receive notifications for android , but I have the following question:

  • If I am in a local environment, and the data server is in the same environment, is there any way I can work with the automatic notifications every time a request is made?

For example: I write new data with a celular X , and I need to send a request automatically to a celular Y with the registry data. I can send and retrieve data by JSON , but how would I detect a change in the database when I do not have internet access?

Is there a way to replace GCM for these cases?

    
asked by anonymous 24.03.2014 / 13:49

1 answer

1

You need to be an application running on a local machine. In the case using websockets in Java or something similar. -------- ------------ ----------- | | | | | | | cel X | -----------> | servidor | -----------> | cel Y | | | <----------- | websocket| <----------- | | --------- ------------- ------------

    
02.04.2014 / 21:33