问题
I want to develop an ionic app that can send receive data using wlan to other devices connected to the same network without internet. Is there any plugin or method available in cordova to send/receive data in local networks.
回答1:
Use this plugin:
https://www.npmjs.com/package/cordova-plugin-chrome-apps-socket
I have included it in two of my apps to exchange data between devices in the same network via sockets. I use it also to implement a local webserver on the devices.
It works on iOS and Android, the API docs you find here: https://developer.chrome.com/apps/socket
And here you find same samples: https://github.com/GoogleChrome/chrome-app-samples/
来源:https://stackoverflow.com/questions/34241018/send-data-using-wlan-in-cordova-app