Closed webmaster-imaginet closed 8 years ago
The issue is that the function fails if wifi is turned off or if an hotspot is already active. I've add workaround for this and published a new release
Hi,
I install ver 1.2.2
I tested it again with the sample app in 3 different conditions - all of them return an empty array 1) Wi-Fi off & Hotspot off 2) Wi-Fi on & Hotspot off 3) Wi-Fi off & Hotspot on
Strange, Works for me
Are you using the latest cordova version 5.1.1 ?
yes, using 5.1.1 and just called scanWifi
Me too (-:
Can you test it with the sample app? https://www.dropbox.com/s/qdtgdr0g0cg6szy/android-debug.apk?dl=0
getting scan results with your test app
very strange. Have an idea how we get different results on the same device & android system with the same app ?
Not really. Can you try to complete remove the app and install it again? Then just call the scanWifi function
I test it again as you asked. I had to confirm twice before scan occur
Still got empty array
@dudeofawesome can you please test the "Scan Wi-Fi" with the sample app on your 6.x device? https://www.dropbox.com/s/qdtgdr0g0cg6szy/android-debug.apk?dl=0 then just check the chrome console to see the results.
With cordova 5.1.1 on Android 5 and Android 6 all is working fine:
I got the same issue on Samsung phone at Android 6.0.1. Seems this issue only happens on Samsung phone. @hypery2k Do you have any idea about this?
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.0.1
Cordova Platforms : android 6.3.0 ios 4.5.2
Ionic Framework : ionic-angular 3.6.1
System:
Android SDK Tools : 26.1.1
ios-deploy : 1.9.2
ios-sim : 6.1.2
Node : v9.0.0
npm : 5.5.1
OS : macOS High Sierra
Xcode : Xcode 9.1 Build version 9B55
Phone information
Hi,
I install the new plugin version 1.2.1 on the test app that I shared with this link: https://www.dropbox.com/s/qdtgdr0g0cg6szy/android-debug.apk?dl=0
Scan Wi-Fi return an empty array