WifiUtils icon indicating copy to clipboard operation
WifiUtils copied to clipboard

Disable auto reconnecting

Open AlirezaGhanbarinia opened this issue 4 years ago • 3 comments

I use the latest disconnect feature it works OK on most devices, but If the user enable the auto reconnecting option, it will automatically connect to WiFi after disconnect the WiFi.

Is it possible that the connection will not be restored automatically after disconnecting the WiFi connection, or will the option of automatic connection for all the surrounding WiFi be disabled?

AlirezaGhanbarinia avatar May 28 '20 15:05 AlirezaGhanbarinia

Maybe use the remove feature then? It will disconnect & remove.

eliaslecomte avatar Aug 17 '20 14:08 eliaslecomte

I have same problem, I didn't understand "remove feature". Please, would you give detail ?

JavaDeveloper08 avatar Oct 16 '20 08:10 JavaDeveloper08

I'm pretty sure this is meant: WifiUtils.withContext(context).remove(ssid, listener) My use case is connecting temporarily to a WiFi to configure something on the WiFi and then disconnect, but just disconnecting made the phone reconnect immediately. Removing the WiFi is the proper solution for my use case.

z3ntu avatar Apr 02 '21 09:04 z3ntu