How to check Internet connection on a Cordova App? : <p>I tried some suggestions, such as <strong>navigator.onLine</strong>, but even in flight mode, my app "thinks" its online.</p>

<p>I found some suggestions with ajax too, but I just want to check if I'm online to open an external web page. If not, I intend to show a message such as "Your device seems to be offline. Check your connection!".</p>
