-
Notifications
You must be signed in to change notification settings - Fork 236
Open
Open
Copy link
Labels
needs more infoIssue requires more information from posterIssue requires more information from poster
Description
iTwin core provides functionality via overrideInternetConnectivity() so that the apps can control the behavior of internet connectivity. At the same time, it also calls this override function internally based on window.navigator.onLine check (in NativeApp.ts startup function). window.navigator.onLine is not a reliable check and thus it changes the connectivity status from what was set by the app earlier which leads to unwanted results.
Steps to reproduce the behavior:
- Listen to onInternetConnectivityChanged event In both frontend and backend in app
- disconnect from internet
- set the connectivity to Offline via overrideInternetConnectivity
- call itwin core startup
- if it determines navigator.onLine to true then it raises onInternetConnectivityChanged with Online status which is wrong.
Expected behavior
Just like overrideInternetConnectivity, iTwin core also provide a way to override connectivity check in the startup and should not determine connectivity state based on unreliable check.
- iTwin.js Version [4.10.x]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs more infoIssue requires more information from posterIssue requires more information from poster