You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checks for Wi-Fi connectivity and displays the details to the user in a dialog.
Behavior Observed:
On Android, the application works perfectly, even when connected to a Wi-Fi network without internet access.
On iOS, the application behaves unexpectedly:
When connected to a Wi-Fi network with internet access, it works as expected.
When connected to a Wi-Fi network without internet access, the results are incorrect. (always showing as none. But Wi-Fi is connected to the mobile).
Details:
I am using the following packages for checking Wi-Fi connectivity:
connectivity_plus
network_info
Both packages lead to unexpected results when testing on iOS.
Question:
How can I resolve this issue or achieve reliable Wi-Fi connectivity detection, especially for Wi-Fi networks without internet access, on iOS?
Checklist before submitting a question
I searched issues in this repository and couldn't find such bug/problem
I Google'd a solution and I couldn't find it
I searched on StackOverflow for a solution and I couldn't find it
I read the README.md file of the plugin
I am using the latest version of the plugin
All dependencies are up to date with flutter pub upgrade
I did a flutter clean
I tried running the example project
The text was updated successfully, but these errors were encountered:
When connected to a Wi-Fi network without internet access, the results are incorrect. (always showing as none. But Wi-Fi is connected to the mobile).
I assume this is Connectivity Plus saying that connectivity is none even when the WiFi connectivity appears on the device status bar, right?
It could be that the device disconnects from wifi and forces to use the phone network if it detects no internet connectivity.
iOS (and macOS) use NWPathMonitor to obtain the connectivity status, so that's something you can research and see why NWPathMonitor does not report wifi if there is no internet connection.
same happenes on simulator after second wifi turn off and turn on , onConnectivityChanged is not fired and checkConnectivity method gives none response.
same happenes on simulator after second wifi turn off and turn on , onConnectivityChanged is not fired and checkConnectivity method gives none response.
in the README you can find the following information:
On iOS simulators, the connectivity types stream might not update when Wi-Fi status changes. This is a known issue.
What is your question?
I am developing a Flutter application that:
Behavior Observed:
Details:
I am using the following packages for checking Wi-Fi connectivity:
connectivity_plus
network_info
Both packages lead to unexpected results when testing on iOS.
Question:
How can I resolve this issue or achieve reliable Wi-Fi connectivity detection, especially for Wi-Fi networks without internet access, on iOS?
Checklist before submitting a question
flutter pub upgrade
flutter clean
The text was updated successfully, but these errors were encountered: