cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Rooms.LaunchInvitableUserFlow(roomID) with Unity

yuma1217
Honored Guest
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..
2 REPLIES 2

Anonymous
Not applicable
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

yuma1217
Honored Guest
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!