This repository was archived by the owner on May 20, 2025. It is now read-only.
WSA not detecting lost internet connection #476
Nisha Kumari (n-kumari)
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I want to detect when Internet connection is lost in my app and perform certain operations accordingly. I am using following to detect the connection
I have a button in my app whose listener is set as following:
The app when it runs on Android app shows correct toasts based on the device internet connectivity. On WSA, it always shows as connected. I switched off my WiFi and turned on airplane mode on Windows 11 laptop to make the WSA offline.
Does WSA use something else instead of laptop's connectivity status to determine if it is offline?
All reactions