Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

How to use Rooms.LaunchInvitableUserFlow(roomID) with Unity

Hi, I have read this and I tried to follow this article.
https://developer.oculus.com/documentation/platform/latest/concepts/dg-rooms/#rooms-quickstart

But Rooms.LaunchInvitableUserFlow() dose not work well...

So, I want to know how to use this method.

↓ I tried this in Unity Editor, Build Apps with OculusRift.
Entitlement check is success, I added test user. 
Test user and my account are friends.
In document, 
> The invite interface will be opened where the user may find and invite users to the room.
but nothing happens.
Rooms.LaunchInvitableUserFlow(roomID).OnComplete(LaunchInvitableUserFlowCallback);

// LaunchInvitableUserFlowCallback
void LaunchInvitableUserFlowCallback(Message msg)
    {
        if (msg.IsError)
        {
            Debug.Log("Error");
            return;
        }
        Debug.Log("Success");  // This log appear.
    }
Note:
In callback, I see the message by debugger.
In message, IsError = false, type = Room_LaunchInvitableUserFlow..

Answers

  • spacefrogspacefrog Posts: 50
    Hiro Protagonist
    edited December 2018
    As far i remember my experience when testing this, the call ( Rooms.LaunchInvitableUserFlow ...) does not work in the unity editor. You have to actually build the app and you'll see your app switching over to the Oculus UI and the user invite dialog displayed
  • yuma1217yuma1217 Posts: 3
    NerveGear
    Thank you spacefrog!!
    spacefrog said:
    the call ( Rooms.LaunchInvitableUserFlow ...) does not work in the unity editor. 
    You have to actually build the app.
    Actually, I builded Apps for OculusRift,,, but I will try it again! Thank you!
Sign In or Register to comment.