An internet connection is not always available, especially when people are moving around a city, on the train, or hiking in the mountains. A good user experience will inform the user when their connection to the internet has been lost.
In this recipe, we will create an app that shows a message when network connection is lost.