I am using phonegap for my app. My app is basicaly for RSS_FEED from one website.
but my requirement is when internet is not there application should alert
-offline
.
when application run on online all data stored into database.
and when internet is not there that time data fetched from DB so my problem is only that application shows me online every time while using of navigator.onLine
.
if(navigator.onLine) {
alert("check online");
loadScript("http://www.google.com/jsapi",msgOnFn)
loadScript("js/googleapi.js", msgOnFn);
} else {
loadScript("js/db.js",msgOffFn);
}
I tried THIS ALSO In this it shows none or wifi everytime. I am not getting why this happening.
in web browser,It is working fine. :)