WiFiFlutter icon indicating copy to clipboard operation
WiFiFlutter copied to clipboard

removeWifiNetwork not work

Open sokunsamnang opened this issue 2 years ago • 7 comments

I use await WiFiForIoTPlugin.removeWifiNetwork(ssid); but there is no any action. I want to use it to forget the network that connected, Am I use the right function as await WiFiForIoTPlugin.removeWifiNetwork(ssid); ?

sokunsamnang avatar Aug 09 '21 13:08 sokunsamnang

What version are you testing on? The behaviour is different based on it.

daadu avatar Aug 09 '21 13:08 daadu

the latest version wifi_iot: ^0.3.4

sokunsamnang avatar Aug 09 '21 13:08 sokunsamnang

Sorry, was asking about Android version.

daadu avatar Aug 09 '21 13:08 daadu

Android 7.0

sokunsamnang avatar Aug 09 '21 13:08 sokunsamnang

This should be working for Android SDK 24, can you share any logs?

daadu avatar Aug 17 '21 13:08 daadu

Same for me, I test from android 11, after call registerWifiNetwork work then call removeWifiNetwork but nothing change, and no log, the func removeWifiNetwork return true. I use the latest version 0.3.15

qhu91it avatar Feb 18 '22 19:02 qhu91it

I have the same problem, I can't disconnect using registerWifiNetwork after connecting. The removeWifiNetwork return true Android 7.0, wifi_iot 0.3.18. Pasting this await _channel.invokeMethod('disconnect'); into a file wifi_iot.dart(line 598) helped me. Tested Android 11

svlobachev avatar Dec 13 '22 13:12 svlobachev