Does Connectivity.ConnectivityChanged detect internet changes even without connection lose? #21017
-
|
Is Connectivity.ConnectivityChanged triggered just by connection service or also trigger is the wifi lost access to the internet? For example, if the ISP for a Wifi network had a service interruption could I detect this using the Connectivity.ConnectivityChanged event? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
No, it does not trigger when the wifi lost access to the internet. You can read about this in the Limitation section of the documentation. You could have a timer, for example, every 6 seconds, checking if the Internet is available. How to use Connectivity? |
Beta Was this translation helpful? Give feedback.
No, it does not trigger when the wifi lost access to the internet.
I have used Android, set up WiFi access point, build the app, connected this phone to the WiFi access point and then turn off the mobile data which (internet access). The connectivityChanged does not trigger.
You can read about this in the Limitation section of the documentation.
You could have a timer, for example, every 6 seconds, checking if the Internet is available. How to use Connectivity?