Android getWifiNetworks not providing latest available networks.
Hello There, I am facing a problem, the getWifiNetworks is not providing latest available wifi networks. I have to go to phone wifi settings and if the new devices are available there then only its giving that results. Its a weird thing I am not able to see latest available devices which I want to connect from my app.
Thank you for any advice in advance
getWifiNetworks function has a param which forces the device to do a rescan
getWifiNetworksfunction has a param which forces the device to do a rescan
I already used that param but getting the same results. Please let me know if I am doing anything wrong?
const wifiNetworks = await TetheringManager.getWifiNetworks(true);
Which android version are you using? Did you grant all required permissions?
Which android version are you using? Did you grant all required permissions?
I am using android 12 and 13 for testing.
And these are the permissions which I am giving. android:name="android.permission.INTERNET" /> android:name="android.permission.NEARBY_WIFI_DEVICES" /> android:name="android.permission.ACCESS_FINE_LOCATION" /> android:name="android.permission.ACCESS_COARSE_LOCATION" android:name="android.permission.ACCESS_NETWORK_STATE" /> android:name="android.permission.CHANGE_NETWORK_STATE" /> android:name="android.permission.ACCESS_WIFI_STATE" /> android:name="android.permission.CHANGE_WIFI_STATE" />