Forums

OverviewV-Play 2 Support (Qt 5) › internet connection

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13851

    Bas

    hi,

     

    i need to know if there is an active internet connection or not.

    what is the easiest way to check this?

    greetz,

    Bas

    #13852

    Günther
    V-Play Team

    Hi Bas!

    I guess there are two possible solutions, both of them require to add custom C++ code:

    • Use the Qt Network C++ components to determine whether internet access is possible.
    • Or add native code parts to check the connection with Java (for Android) and Objective-C (for iOS) and call them from Qt C++.

    The advantage of the first solution is that no platform-specific code is needed, so I would go with that if possible. Using native code might offer more details though, like checking whether WiFi or mobile internet is used for the connection.
    See here to learn about Integrating C++ and QML.

     

    Best,
    Günther

    • This reply was modified 2 years, 4 months ago by  GT.
    #13855

    Bas
Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support