Hi Team,
Im trying to detect if there's internet or no internet when the user opened the application. so i input this code in pageshow event:
var online = window.navigator.onLine;
if (!online) {
alert('Check your internet.');
};
but nothings happen. I already tried the OFFLINE/ONLINE Event to the app to show the alert but still no luck. Thank you in advance.
please help.
Thank you.