Network-Based Feature Gating
Goal
Enable/disable features based on current internet connectivity.
Actions used
NetworkServicesGetStatusNetworkServicesOnInternetConnectivityChanged(persistent listener)
Variables
isInternetActive(Bool)
Flow
On entering a screen: call
NetworkServicesGetStatusand gate features usingisInternetActive.Keep
NetworkServicesOnInternetConnectivityChangedactive to update UI dynamically:eventConnectedβ enable online-only buttonseventDisconnectedβ disable them and show an offline indicator
Last updated
Was this helpful?