-
Notifications
You must be signed in to change notification settings - Fork 231
Mobile: reachability updates #8786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* Receive updates from addon * Store the online status in a global * Use the global to avoid doing checking for cloud container changes when offline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds network reachability monitoring to mobile applications by integrating online/offline events from the native platform. The changes enable the backend to track connectivity status and optimize workspace operations by skipping remote checks when offline.
Key Changes:
- Added "online" and "offline" device events to the mobile platform API
- Implemented handlers to update global connectivity status when network state changes
- Modified workspace container logic to skip cloud synchronization checks when offline
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
core/mobile/src/common/MobileAppProps.ts |
Added "online" and "offline" to the DeviceEvents type definition |
core/mobile/src/backend/MobileHost.ts |
Implemented event handlers that update NativeHost's connectivity status when online/offline events are received |
core/backend/src/internal/workspace/WorkspaceImpl.ts |
Added early return logic to skip cloud container checks when offline in mobile environments |
core/backend/src/NativeHost.ts |
Added global process.internetConnectivityStatus to expose connectivity state without direct NativeHost references |
common/changes/@itwin/core-mobile/tcobbs-reachability_2025-11-19-19-50.json |
Changelog entry for mobile package (type: none) |
common/changes/@itwin/core-backend/tcobbs-reachability_2025-11-19-19-50.json |
Changelog entry documenting workspace update check optimization |
common/api/core-mobile.api.md |
Updated API surface to reflect new device event types |
common/changes/@itwin/core-mobile/tcobbs-reachability_2025-11-19-19-50.json
Outdated
Show resolved
Hide resolved
…19-19-50.json Co-authored-by: Copilot <[email protected]>
|
@Mergifyio backport release/5.4.x |
✅ Backports have been created
|
Co-authored-by: Paul Connelly <[email protected]> Co-authored-by: Copilot <[email protected]> (cherry picked from commit 3335c9e)
imodel-native-internal: https://github.com/iTwin/imodel-native-internal/pull/921