ThanosFisherman / WifiUtils

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

Force Wifi network #88

Open JavaDeveloper08 opened 3 years ago

JavaDeveloper08 commented 3 years ago

Hi, How do I force Android to use wifi network instead of mobile network. I'm building an app that connects to a certain WiFi network that has no internet access. In some devices, beacuse of no internet access, device is connecting mobile data.

I would like to force certain Wifi Network.

Thank you.

ThanosFisherman commented 3 years ago

Hi,

WiFiUtils does everything it can to shift the selected network to the highest priority. Other than that there is not much you can do since some devices decide to prioritize WiFi networks with better internet access and connect to them.

So it's a device specific thing.

JavaDeveloper08 commented 3 years ago

Thank you @ThanosFisherman I got it. But, How can i solve this problem by using other ways. Would you give alternative solving advice to me?