hypery2k / cordova-hotspot-plugin

A Cordova plugin for managing HotSpot networks on Android
MIT License
37 stars 50 forks source link

Android 10 scan and connect problem #106

Open SzymG opened 4 years ago

SzymG commented 4 years ago

After my system upgrade to Android 10, plugin return always empty array after call .scanWifi(), also connectToWifi(SSID, password) always return 'Connection was not successfull'. Before the update there was no problem. My phone is Xiaomi Redmi Note 7.

eliadAfeka commented 3 years ago

After my system upgrade to Android 10, plugin return always empty array after call .scanWifi(), also connectToWifi(SSID, password) always return 'Connection was not successfull'. Before the update there was no problem. My phone is Xiaomi Redmi Note 7.

is anyone maintain this plugin? because after Android 10 (from November 20) no one can use it anymore.

about the scan, you can use the plugin "WifiWizard2". about connect, I still couldn't find any plugin. if you find one, please let me know.

SzymG commented 3 years ago

@eliadAfeka Thanks for reply. I was using "WifiWizard2", but forgot to mention about it. I've found solution to my issue. The thing is that you must have location enabled and everything is working fine. In my case the problem was that after first run of app, plugin asked me to turn on the location, I gave permission and location turned on. Then (when permission was granted previously) in the next runs I haven't got location enabled.

abhijithp commented 3 years ago

@SzymG @hypery2k any updates on how to solve this issue?