-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
Sub Issue: Network Status Monitoring Implementation in runtime Directory
Background
This sub issue is based on Issue #113: Support online/offline network status monitoring.
Implementation Requirements
- Implement network status monitoring capabilities within the
runtimedirectory of the project. - For Android, leverage platform APIs such as
ConnectivityManagerto listen for online/offline network status changes and dispatch corresponding events (e.g.,online,offline). - For macOS, use platform capabilities such as
SCNetworkReachabilitySetCallbackto achieve similar online/offline event listening and notification. - Ensure that the events can be triggered and handled in a manner consistent with the JSAR runtime event model.
- The implementation should allow higher-level APIs (such as window event listeners) to receive online/offline events according to platform changes.
References
Additional Notes
- Focus on leveraging native platform capabilities for network status detection.
- Maintain modularity and separation of concerns within the
runtimedirectory.
Copilot
Metadata
Metadata
Assignees
Labels
No labels