This repository has been archived by the owner on May 15, 2024. It is now read-only.
[Bug][Question] Connectivity changes potentially not picked up by application #1106
Labels
bug
Something isn't working
Description
note: we're reporting this for Android but have not looked into iOS and UWP.
We've had a few reports of our app appearing to be "offline" while the device has internet connectivity via other apps or the browsers.
Looking at our telemetry, it would appear that these are mostly related to instances where the user was possibly offline, left the app running, went to do other stuff (ie stop using the device for a period of time). When they come back to the app, the app still believes that it is offline even though they are now connected.
Speculation:
Are we missing something in the Connectivity pattern?
Should we recheck connectivity at certain app lifecycle events?
Has anyone had any similar issues?
For context, we have a network monitor service that keeps a variable for "isAvailable" and subscribes to the Connectivity.ConnectivityChanged event.
There are some code paths that will trigger a recheck of the status, but we try to avoid doing this too much - is the impact of checking Connectivity.NetworkAccess negligible enough that we could potentially run it very frequently whenever web requests are about to be performed?
if so, is there any point in subscribing to the ConnectivityChanged event if you're not notifying users of changes in real time?
The text was updated successfully, but these errors were encountered: