Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants