How do I check status of internet connection?

  • Hey guys,

    i have online highscores in my game that needs internet connectivity to run. I wanted to do "warning" when the device is "offline". Do you have any idea how to do it?

    Thanks for every help!

  • Hey guys,

    i have online highscores in my game that needs internet connectivity to run. I wanted to do "warning" when the device is "offline". Do you have any idea how to do it?

    Thanks for every help!

    The Browser plugin has a Condition to use:

    [quote:bkdgqmby]Is online

    True if the browser currently has an active connection to the internet.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi guys. This is my very first post, so I would like to say mornin'

    I searched for solution, but despite many issues described on forum, there is nothing to fix it. I also want to check online status, but it seems that Browser Is Online work only on desktop browser, not in XDK app. There I got always true on "is online" condition, even if there is no connection at all.

    Any idea how to get it done? I need to check internet status to determine if preload admobs or not.

  • Sorry for the bump, but I may have solution:

    My test works (with online and offline check) after adding cordova-plugin-network-information in XDK.

    Maybe it would be helpfull for somebody else.

  • qam Thanks man! That works perfectly!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)