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

removeWifiNetwork not work #165

Open
sokunsamnang opened this issue Aug 9, 2021 · 7 comments
Open

removeWifiNetwork not work #165

sokunsamnang opened this issue Aug 9, 2021 · 7 comments

Comments

@sokunsamnang
Copy link

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); ?

@daadu
Copy link
Member

daadu commented Aug 9, 2021

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

@sokunsamnang
Copy link
Author

the latest version wifi_iot: ^0.3.4

@daadu
Copy link
Member

daadu commented Aug 9, 2021

Sorry, was asking about Android version.

@sokunsamnang
Copy link
Author

Android 7.0

@daadu
Copy link
Member

daadu commented Aug 17, 2021

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

@qhu91it
Copy link

qhu91it commented Feb 18, 2022

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

@svlobachev
Copy link

svlobachev commented Dec 13, 2022

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

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

4 participants