Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do we have any plugin available for wi-fi direct in phonegap?

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 :)

like image 673
user2386771 Avatar asked Apr 02 '14 06:04

user2386771


People also ask

Which Android phones can connect to Wi-Fi Direct?

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.

How to connect to a device via Wi-Fi Direct?

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. ...

How to turn on Wi-Fi Direct on Android 9 Pie?

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.

How does Wi-Fi Direct work?

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.


1 Answers

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!

like image 192
Gabi Avatar answered Sep 29 '22 19:09

Gabi