Do we have any plugin available for wi-fi direct in phonegap?
I want to share data using wi-fi and we can do that in native android using wi-fi direct
, but when i checked for phonegap I didn't found any suitable doc's.
Is there a way I can do that in phonegap?
Any solutions or documents will be greatly helpful.
Thanks :)
Every Android smartphone that uses Android 4.0 and above has Wi-Fi Direct functionality (bar some very rare exceptions). While the systems' user interfaces might vary, setting this functionality up is relatively simple and unified across all devices.
Method 1 of 2: Connecting to a Device via Wi-Fi Direct 1 Open your Android's Apps li ... 2 Find and tap the icon. ... 3 Tap Wi-Fi on your Settings ... 4 Slide the Wi-Fi switch to t ... 5 Tap the three vertical dots ... 6 Tap Wi-Fi Direct on the dro ... 7 Tap a device to connect. ...
To turn on Wi-Fi Direct, go into Settings -> Connections -> Wi-Fi then tap on the Wi-Fi Direct tab at the top. Your smartphone will start scanning for devices that you can connect to. Activating Wi-Fi Direct on Android 9 Pie. / © NextPit.
WiFi Direct is built upon the same WiFi technology used by most modern consumer electronic devices to communicate with wireless routers. It allows two devices to communicate with each other, provided that at least one of them is compliant with the standard to establish a peer-to-peer connection.
I'm new at Cordova, but maybe you can use the function cordova.exec
:
cordova.exec(function(winParam) {}, function(error) {}, "service",
"action", ["firstArgument", "secondArgument", 42,
false]);
http://docs.phonegap.com/en/2.7.0/guide_plugin-development_index.md.html
If it's only for android, ou might use these functions:
http://developer.android.com/guide/topics/connectivity/wifip2p.html
Please let me know if you get anything!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With