Skip to content

Network Reachability

Chris Scott edited this page Mar 25, 2016 · 1 revision

iOS uses the Reachability component by tonymillion to detect network-status changes in real time.

iOS Network Reachability Flags

Status Flag
Is WWAN W
Reachable R
Connection required c
Transient connection t
Intervention required i
Connection on-traffic C
Connection on-demand C
Is local address l
Is direct d

Example log messages.

You can observe these messages by changing connection-status on your iOS device (with your app running in background with aggressive-monitoring engaged (ie: changePace(true) or preventSuspend: true)

Toggle Airplane Mode

╔═════════════════════════════════════════════════
║TSLocationManager ► Network: No Connection
╠═════════════════════════════════════════════════
╟─ Flags: -- -------

Toggle Cellular Data

╔═════════════════════════════════════════════════
║TSLocationManager ► Network: Cellular
╠═════════════════════════════════════════════════
╟─ Flags: WR -t-----

Toggle WiFi

╔═════════════════════════════════════════════════
║TSLocationManager ► Network: WiFi
╠═════════════════════════════════════════════════
╟─ Flags: -R -------