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

Forums

OverviewFelgo 2 Support (Qt 5) › Gamenetwork / Multiplayer : get all users Id

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

    Jean-Marc

    Hi, I’m new to the gamenetwork and multiplayer and I can’t find how I can get the list of all users (online or not) of my application ? (I’m using gamenetwork and multiplayer for a social type application) ! Do I have to maintain this list myself on a external database ?

    Also, is there a way to use different profiles on a same device ?

    #16108

    Christian
    Felgo Team

    Hi Jean-Marc,

    currently there is no built-in support in Felgo Multiplayer to detect which users are online. You could do this on your own using external database (we are going to release a Firebase plugin very soon where you can do this). Or we can add it to the multiplayer solution – please contact us via support@felgo.com for a qutoe for this.

    You can use different profiles on the same device by manually changing the deviceId of a GameNetworkUser. The deviceId property is not publicly documented, however, you can see how we do this in the One Card source code, where we alternate between 4 players in debug builds with this code:

    VPlayGameNetwork {
    
    // set the deviceId to whatever you like
    user.deviceId: system.UDID + "_" + "optionalName"
    
    }

     

    Out of interest: why would you like different profiles per device?

    There is still the option to let your users connect with Facebook, in which case they get the same userId across devices & platforms.

    Cheers, Chris

    #16109

    Jean-Marc

    Hi Christian, and thank you for your answer.

    We already use an external mySQL database (through a DreamFactory REST service) so I’m gonna use it to store all the users…

    About the different profiles, it’s because our app is a kind of social network based on specific criteria and geoloc… and we were thinking if it will be a good idea to let the user get multiple profiles on a same device… but for the 1st version I think we’ll stay on a mono profile system !

    Best,

    Jean-Marc

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