ThanosFisherman / WifiUtils

Easily Connect to WiFi Networks
Apache License 2.0
744 stars 188 forks source link

scan stop immediately #51

Closed juicycool92 closed 4 years ago

juicycool92 commented 4 years ago

Basicly, most of phone can scan wifi's normally.

but some of phone get COULDN'T SCAN error and stop scam immediately. i cannot find any solution, i cannot gathering detail log. i stuck at here..

D/WifiUtils: WifiUtils: WIFI ENABLED...
D/WifiUtils: WifiUtils: START SCANNING....
I/ROCATEER_LOG - (WifiSelectActivity.java:140) [getScanResults]: SCAN RESULTS IT'S EMPTY
D/WifiUtils: WifiUtils: ERROR COULDN'T SCAN

is there any solution or hint for this error?

bverhoeven commented 4 years ago

If you're using Android 9 or higher, you're probaby seeing the same issue as in #55:

Each foreground app can scan four times in a 2-minute period.

Attempts to scan more than four times in a 2-minute period will result in an empty list (which will indeed "finish" instantly). There's unfortunately no way to work around these restrictions.

juicycool92 commented 4 years ago

If you're using Android 9 or higher, you're probaby seeing the same issue as in #55:

Each foreground app can scan four times in a 2-minute period.

Attempts to scan more than four times in a 2-minute period will result in an empty list (which will indeed "finish" instantly). There's unfortunately no way to work around these restrictions.

Thanks for letting me know current state of problem. seems like i cant do anything until something update or else. i close this issue case because duplicated #55