Check Internet connection to show check connectivity error page

I am working on developing an app for mobile based on framework7. But I need to check internet connection frequently and should show a page of no internet connection with a button to check internet connection and navigate back to page where user left or check internet and navigate back automatically. I can’t able to figure it out. I would like to thank in advance.

Sorry mate :slight_smile: but this has nothing to do with f7. This is more question on mobile platform you are using (cordova perhaps?). Look for a plugin/code how to detect internet connection.

Use the Cordova plugin cordova-plugin-network-information to detect the online state