-
Notifications
You must be signed in to change notification settings - Fork 182
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
Mobile Internet doesn't work, after closing the IOT device wifi connection. #385
Comments
I too have this issue, any fix? |
I'm also having this issue any help on this? In my case after IOT device stops the WiFi connection my device should automatically switch to previously configured home wifi. |
You need to set forceWifiUsage(false) after communicating with IOT device. |
I have handled this feature Natively Please find the source code below with this you can achieve the following (Use method channel to call this native code in flutter)
Connection method For Android 10+ devices
Connection method for Android 10 below devices
|
@E2-Veera |
Above android solution perfectly working for me dor iOS I've used the following swift code for WiFi Connection, By using this when your IoT device stops the wifi connection then iPhone will automatically switch to Home WiFi
Please note that you have to Enable Local Network Permission to communicate with IoT devices for that you need to add the below permission in |
@E2-Veera I'm doing the same from my laptop, but the windows laptop won't switch the network which is an optimal solution for me... |
If want to connect to the same IoT after disconnection then you have to request the connection again. iOS: |
@E2-Veera Thanks a lot, that makes sense. |
I'm using this package for auto-connecting to wifi. Then using the tcp sockets i receive the data.
Later, the IOT device gets disconnected and mobile gets switched to either mobile data or another wifi.
The internet gets blocked, unless i restart the app. The internet doesn't work after the communication.
The text was updated successfully, but these errors were encountered: