how to check internet connection
How can app knows if internet is available or not without clicking on nay event ?
For example
I am filling some form and before saving and my internet goes.
In offline mode I click save and store my form values in my local storage.
After some time internet will come and I am on other screen.
I want to automatically send my form values to server.
But how should I tell the app that internet is available now.
App can send data to server in back-end.