Monitors the network state. A NetworkMonitor is used to retry requests when network is available.
The current state of the network
Waits until isOnline is true