Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

navigator.onLine always reporting true

  • I am needing to see if the use is online before running an function.
    I intended to use navigator.onLine but it is always reporting true, even if no network is connected. just to ensure this, i put airplane mode ON (Android OS) so no connection is there, and it is still reporting navigator.onLine = true. Confusing part, this WAS working a few days ago, but now, no joy… Any help is appreciated…

  • @dustintinsley You can try:

    document.addEventListener("online", yourCallbackFunction, false);


  • Dumb mistake on my end. I removed Network Information plugin from my project. Adding it back, everything once gain works…