APIs

Questions specific to particular APIs, libraries, etc.

52 Topics 189 Posts
  • Error launching room on room server

    Unsolved
    2
    0 Votes
    2 Posts
    458 Views

    Hi,

    Has your dockerhub team invited the "braincloudhost" user to your team with read-only privileges so that we can retrieve your custom image?

    The email address of that account is paulw AT getbraincloud.com.

    Hope that helps!

    Paul.
    [PS - Once you've done that - ping us here or in the support chat. We need to manually access the request these days <- Recent change to how dockerhub works.]

  • 0 Votes
    2 Posts
    501 Views

    It's not. Just knowing a playerId is really not important as it's only a unique identifier for another player and nothing more than that.

  • Unreal 5.1 + Online Services

    4
    0 Votes
    4 Posts
    936 Views

    We should point out that this doesn't mean that there aren't Unreal multiplayer examples in brainCloud - they just don't use the online subsystem paradigm per se.

    Here's our latest Unreal dedicated server example: https://github.com/getbraincloud/braincloud-roomserver-unreal

  • [Unity] In App Purchases

    Solved
    2
    0 Votes
    2 Posts
    740 Views

    brainCloud supports a wide range of popular in-app purchases, including Google Play, Apple, Facebook, Amazon, and Steam, etc.. In most cases, the purchase process is initiated through the corresponding IAP plugin that you need to download into your Unity project. Then, verify the receipt received from the purchase outcome with brainCloud by calling VerifyPurchase API. It should be noted that the necessary configuration for the IAP store must be set up in the brainCloud portal for your app, including the products section and platforms section. Some store integration examples are available on our documentation website -- https://docs.braincloudservers.com/learn/portal-tutorials/store-integration-google/
    Hope this helps!

  • 0 Votes
    2 Posts
    444 Views

    Hi @francesco-lenolli ,

    The ProductService has actually been deprecated.

    You should use the AppStore service instead.

    I hope that helps!

    Paul.

    2024-09-17_19-55-15.png

  • 0 Votes
    2 Posts
    362 Views

    Hi there- thanks for bringing this to our attention! A newer version of the Unity Package containing a fix for this has been uploaded. Available here: https://github.com/getbraincloud/braincloud-csharp/releases/tag/5.4.1

  • 0 Votes
    8 Posts
    965 Views

    For clarity, Firebase Cloud Messaging recommends creating a topic using Pub/Sub, though this approach is optional.

  • Global Entities retrieval issues and questions

    Unsolved
    5
    0 Votes
    5 Posts
    678 Views

    @wjurica Assuming you're using c#, consider Newtonsoft for the deserialization & mapping process. It's two lines of code to map your data to a class.

    https://www.newtonsoft.com/json

  • RelayService.Send not working and get disconnect error

    Solved
    7
    0 Votes
    7 Posts
    846 Views

    No problem! glad to hear that.

  • PostTournamentScoreUTC DateTime or ulong?

    Unsolved
    4
    0 Votes
    4 Posts
    773 Views

    Okay - cool!

  • 0 Votes
    2 Posts
    27 Views

    First, it's recommended to use FindOrCreateLobby call instead of CreateLobby. It’s generally a better approach since it handles both cases — creating a new lobby if one doesn’t exist, or joining an existing one if it does. This gives your players a smoother experience when first trying to get into a lobby.

    Second, just to clarify the sequence: the STARTING event doesn’t mean the lobby itself is starting, it happens after members have already joined and the server launch conditions are met. At that point, brainCloud is spinning up a game server for the lobby. You can find more details in our lobby documentation here -- https://docs.braincloudservers.com/api/capi/lobby/#lobby-events

    Because of this, your loading spinner should remain active continuously after the FindOrCreateLobby call succeeds, since the user’s intent (“joining a lobby”) isn’t complete yet, from the user’s perspective, they’re still “joining a lobby” until they either:

    Receive ROOM_READY → success, hide the spinner.

    Receive an error → failure, hide the spinner and show an error.

    This way, you avoid the hide → show gap, and the spinner matches the full lifecycle of the join process; it simply stays up until the full lobby join flow is resolved.

    So in short: use FindOrCreateLobby, and keep the loading spinner up until you get either ROOM_READY or a failure event.

  • 0 Votes
    9 Posts
    44 Views

    Sorry for the confusion, I was under the impression a publisher key gave you certain read-only permissions on a user given they own your game (this was silly in hindsight)

    While the users in question had public profiles, their privacy settings for friends lists were set to private.

    Thank you for your help! I now understand what you meant by "as long as users grant your app permission".