Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 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 5 years, 8 months ago by  GreenAsJade.
    #8828

    Christian
    Felgo 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
    Felgo 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.