How do I check status of internet connection?

0 favourites
  • 5 posts
  • 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.

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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)