Infrastructure medium complexity mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Infrastructure component that monitors the device's network connectivity status using platform APIs and broadcasts state changes. It detects transitions between online and offline states, including distinguishing between WiFi and cellular connections, and triggers the Offline Manager to switch modes accordingly.

Feature: Offline Data Support

connectivity-monitor

Responsibilities

  • Listen to platform connectivity change events
  • Verify actual internet reachability beyond network interface status
  • Broadcast connectivity state changes to subscribed services
  • Handle edge cases like captive portals and intermittent connections

Interfaces

startMonitoring()
stopMonitoring()
isConnected()
getConnectionType()
onConnectivityChanged(callback)
checkReachability()