Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when I connect the network , WifiUtils will scan the wifis #109

Open
xumengyin opened this issue Jul 8, 2021 · 2 comments
Open

when I connect the network , WifiUtils will scan the wifis #109

xumengyin opened this issue Jul 8, 2021 · 2 comments

Comments

@xumengyin
Copy link

hi Guy ,thanks you Lib,but I have question.when I connect the network , WifiUtils will scan the wifis ,but Android has restrictions on scanning wifi, So I can not connect the netWork because scan wifi failed . So myQuestion is it necessary to scan wifi for connect Network

@ThanosFisherman
Copy link
Owner

Hello,

At the moment WiFIUtils performs a scan before connecting to a wifi and there is currently no way to override this behavior.

This was a design choice back in the day when android wouldn't impose throttling on wifi scanning.

It is a good idea to deprecate that behavior now. Hopefully I will get around to it as soon as I find some time.

@ansuman87
Copy link

Hi @ThanosFisherman ,
Does that mean neither the wifi-scan function nor connecting to a network(for known SSIDs) function will work on Android 10? Basically, is this library not suitable for Android 10? I have throttling wifi scans disabled on my Android and still it's not working.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants