Send data using wlan in cordova app

吃可爱长大的小学妹 提交于 2019-12-11 12:24:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!