Forums

OverviewV-Play 2 Support (Qt 5) › Handling of no-data-connection by VPlayGameNetworkView

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8821

    Martin

    Is there some way to control what happens when there’s no data connection for VPlayGameNetworkView?

    Right now, I have the following undesireable behaviours:

    – In the Android simulator, when there is no network, there is a dialog about this, and hitting “OK” on the dialog results in quit to desktop

    – On the device, an empty leaderboard is displayed, with no explanation about why it is empty.

     

    Both these seem to need to be improved.  In the second case, the user should not be left wondering “is something going to happen?”
    What are the recommended ways for handling this?

     

     

     

    • This topic was modified 3 years, 10 months ago.
    #8828

    Christian
    V-Play Team

    Hi Martin,

    you can use the VPlayGameNetwork::connectionError property for handling that. The dialog is not shown on Android, because all Android device builds are release builds and on release builds this debug dialog is not shown. You would need to create the dialog yourself, see the connectionError doc for that.

    Cheers, Chris

    #8829

    Martin

    Thanks Chris.

    It would be really nice if VPlayGameNetworkView had some default handling of this :)

    I guess that the current way to do it is to simply not show the VPlayGameNetworkView if VPlayGameNetwork::connectionError is true…

     

    #8835

    Christian
    V-Play Team

    Hi Martin,

    I’m not sure if it should display a messageBox by default or not show it at all – if the internet connection did exist before, you can still see the old leaderboard data which might be useful for the player. Also, opening native message boxes by default might ruin the UI of your game, thus it is not shown by default.

    Cheers, Chris

Viewing 4 posts - 1 through 4 (of 4 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