Push notification on a local network (case without internet)

Asked

Viewed 469 times

2

I studied in the services of GCM for sending and receiving notifications to the android, but I have the following doubt:

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

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

Is there any way to replace the GCM for these cases?

1 answer

1


What you need there is an application running on a local machine. In case using websockets in Java or something similar. -------- ------------ ----------- | | | | | | | cel X | -----------> | servidor | -----------> | cel Y | | | <----------- | websocket| <----------- | | --------- ------------- ------------

  • http://www.html5rocks.com/pt/tutorials/websockets/basics/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.