سؤال

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