• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • All tags
    Load new posts
Log in to post
  • devsleeperD

    [Unity] AddFriendsFromPlatform/ListFriends doesn't return correct platform

    Scheduled Pinned Locked Moved Solved APIs
    9
    0 Votes
    9 Posts
    44 Views
    devsleeperD

    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".

  • devsleeperD

    Pre-Game Lobby: Groups vs Lobby?

    Scheduled Pinned Locked Moved Solved General
    4
    0 Votes
    4 Posts
    31 Views
    J

    You can set up a lobby type with no server by leaving the server dropdown unselected in the lobby type configuration.

    e678a202-7170-409e-a1b6-16d612b51c4a-image.png
    In this setup, the lobby will disband after sending the STARTING event once it's full. At that point, you can use
    the OnLobbyEvent callback and connect your players to Photon Cloud when the DISBANDED event is received.

    Lobbies in brainCloud are flexible, they can be used to gather players before transitioning into hosted servers or async offline matches, and more.

  • P

    [Unity] LobbyService.CreateLobby - Best time to show and hide a "Connecting..." popup?

    Scheduled Pinned Locked Moved Unsolved APIs
    2
    0 Votes
    2 Posts
    27 Views
    J

    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.

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users