title: Background network checking
body: <p>I have an app that displays the network availability whenever there is some activity such as the view change. However i am looking for a code that runs in the background to check the network availability even if i will be idle on the same screen and it must display a message that "network is not available/network is available"</p>