Last updated
Detect internet connectivity changes and switch between online/offline flows.
NetworkServicesStartNotifier
NetworkServicesGetStatus (optional initial poll)
NetworkServicesOnInternetConnectivityChanged (persistent listener)
isInternetActive (Bool)
On app launch: call NetworkServicesStartNotifier.
Optional: call NetworkServicesGetStatus and branch using isInternetActive to initialize UI.
Keep NetworkServicesOnInternetConnectivityChanged in an active state:
eventConnected → resume online features / sync queued actions
eventDisconnected → pause online features / show offline UI
Listener actions should stay active; they fire events when connectivity changes.
Last updated