Closed adaonder closed 4 years ago
Hi, if GPS is on, the result(scanResults) comes. If GPS is off, there is no result. Why was the GPS condition added?
Code: WifiUtils.withContext(Application.getInstance()).scanWifi(scanResults -> { LogUtil.d("scanResults: " + scanResults.size()); ...
Yes we've been through this multiple times. It's a requirement by the Android framework to keep your location data on if you want to scan for wifi networks.
More info here
Hi, if GPS is on, the result(scanResults) comes. If GPS is off, there is no result. Why was the GPS condition added?
Code: WifiUtils.withContext(Application.getInstance()).scanWifi(scanResults -> { LogUtil.d("scanResults: " + scanResults.size()); ...