I am developing an application with an internal server (andro php),and I would like this application to send notifications to users that are connected to this network.

This network has not internet access, it's just a local network.

I am familiar with c2dm and xmpp, but these are only valid for when I have internet connection (in this case is a LAN without internet).

Anyone has any idea of ​​what I propose?

有帮助吗?

解决方案

You can broadcast data over the wifi. Essentially, this allows you to send data without knowing who will receive it. If your app (running on another phone) is expecting certain data, you can register a BroadcastReceiver to listen for the UDP packets. Examples can be found here, here, and other places on the web.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top