The DiscoveryPlugin adds support to send broadcast messages and receive a response.
To include the StatusBar plugin in your PhoneGap Build application, add this to your config.xml:
<gap:plugin name="be.fullcircle.discovery.discoveryplugin" />
- startDiscovery : Sets broadcastIP, port and message to be used to communicate. Broadcasts the message over the network every three seconds.
- stopDiscovery : Stops scanning for devices.
Following permissions will be automatically added to the AndroidManifest
Sends broadcast messages using IP, PORT and BROADCAST MESSAGE. Receiving devices should reply to ip where broadcast is send from.