Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Brite
  • 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
  1. Home
  2. APIs
  3. lobbyId ?

lobbyId ?

Scheduled Pinned Locked Moved Solved APIs
ioslobbyidlobbymatchmaking
6 Posts 2 Posters 2.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kirlos Yousef
    wrote on last edited by Kirlos Yousef
    #1

    Hello,

    Please I have a small question about the lobby, I have been working to implement it in my new app, but there is a required parameter for some functions which is lobbyId, I don’t know where can I get this from? As I don’t receive this id in the response when I create a new lobby.

    I searched on the portal tutorial, api ref and the forums, but didn’t find anything, so I think am lost here.

    Thank you.

    1 Reply Last reply
    0
    • Paul WinterhalderP Offline
      Paul WinterhalderP Offline
      Paul Winterhalder
      brainCloudAdmin
      wrote on last edited by
      #4

      Doh - I didn't realize you were using that SDK - which is lagging a bit behind.

      We'll get the devs on that - but we've hit the holidays here in Canada and we'll be looking at an early January release then.

      Apologies...

      (Note - that SDK is based on our C++ SDK if you want to go off-road a bit to see how to add the support for yourself. Apologies for the delay!)

      1 Reply Last reply
      1
      • Paul WinterhalderP Offline
        Paul WinterhalderP Offline
        Paul Winterhalder
        brainCloudAdmin
        wrote on last edited by
        #2

        Hi Kirlos,

        The lobbyid is returned in the MEMBER_JOIN RTT event that you receive once you've been assigned to the lobby. You can see the details of the event on this page https://getbraincloud.com/apidocs/apiref/#capi-lobby

        Copy-and-paste here:

        {
            "service": "lobby",
            "operation": "MEMBER_JOIN",
            "data": {
                "lobbyId": "22819:unranked:406",
                "currentTime": 1549658965234,
                "lobby": {
                    "state": "setup",
                    "owner": "f6fa3e0e-6aac-497a-84e1-c8db6f545c12",
                    "rating": 0,
                    "lobbyTypeDef": {},
                    "settings": {},
                    "version": 1,
                    "timetable": {
                        "createdAt": 1549658965234,
                        "early": 1549658965234,
                        "onTime": 1549659055234,
                        "tooLate": 1549659145234
                    },
                    "numMembers": 1,
                    "members": []
                },
                "member": {
                    "profileId": "f6fa3e0e-6aac-497a-84e1-c8db6f545c12",
                    "name": "David",
                    "pic": "",
                    "rating": 0,
                    "team": "player1",
                    "isReady": true,
                    "extra": {},
                    "cxId": "22819:f6fa3e0e-6aac-497a-84e1-c8db6f545c12:bvm2ga9aelaigkbdrojp3ifjrp"
                }
            }
        } 
        

        To receive the events, you need to register a handler:
        https://getbraincloud.com/apidocs/apiref/?csharp#capi-rtt-registerrttlobbycallback

        I hope that helps!

        Paul.

        1 Reply Last reply
        1
        • K Offline
          K Offline
          Kirlos Yousef
          wrote on last edited by
          #3

          Hi Paul,

          Thank you for your reply.
          The problem is that I am using the Objective-C SDK, and I don't have _bc.RTTService, it's also written "Coming soon!" in the API ref., so how can I register a handler in this case?

          Thank you!

          Kirlos.

          1 Reply Last reply
          0
          • Paul WinterhalderP Offline
            Paul WinterhalderP Offline
            Paul Winterhalder
            brainCloudAdmin
            wrote on last edited by
            #4

            Doh - I didn't realize you were using that SDK - which is lagging a bit behind.

            We'll get the devs on that - but we've hit the holidays here in Canada and we'll be looking at an early January release then.

            Apologies...

            (Note - that SDK is based on our C++ SDK if you want to go off-road a bit to see how to add the support for yourself. Apologies for the delay!)

            1 Reply Last reply
            1
            • K Offline
              K Offline
              Kirlos Yousef
              wrote on last edited by
              #5

              Oh okay, I understand.
              Yeah I was already trying to use the C++ SDK, and I will also be waiting for the Obj-C one.

              Thank you!

              1 Reply Last reply
              0
              • K Offline
                K Offline
                Kirlos Yousef
                wrote on last edited by
                #6
                This post is deleted!
                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

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