Skip to content

Implement network status monitoring in src/runtime (Android/macOS) #160

@yorkie

Description

@yorkie

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 runtime directory of the project.
  • For Android, leverage platform APIs such as ConnectivityManager to listen for online/offline network status changes and dispatch corresponding events (e.g., online, offline).
  • For macOS, use platform capabilities such as SCNetworkReachabilitySetCallback to 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 runtime directory.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions