Page 1 of 1

event offline

Posted: Mon Oct 29, 2012 10:15 pm
by Eric5020946

event offline doesn't seem to work.. I have it attached to a page so I assume when device is offline (let's say airplaine mode) and user goes to this page it would trigger navigatettopage (special offline page with message) - doesn't happen

any other way to add custom JS to LOAD event so detection happens onload?


event offline

Posted: Mon Oct 29, 2012 10:43 pm
by maxkatz

How do you test the app, as mobile web app or native app?


event offline

Posted: Mon Oct 29, 2012 10:45 pm
by Eric5020946

native

event offline doesn't detect that device is offline.. same will be with online event - caching in the app is so aggressive that app doesn't even know when it is back online


event offline

Posted: Mon Oct 29, 2012 10:55 pm
by maxkatz

Have you tried a basic alert using this example?
http://docs.phonegap.com/en/2.1.0/cor...