Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 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 9 years, 3 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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded