cancel
Showing results for 
Search instead for 
Did you mean: 

Avatar SDK - How to Invite friends

Welby
Adventurer
EDIT: I changed the request since i solved the previous one.

I'm now basically trying to figure out how to invite friends. Pressing X will put me in the Oculus Home menu but clicking on friends do nothing. There's something am i missing?

By default every player create his own room.. but i can't understand how to invite people.
14 REPLIES 14

Welby
Adventurer
Yes i followed all the documentation to setup the social starter scene and the sphere in the room is white. 

So everything works as should but once i press X to invite friends i have the global oculus menu.. but nothing else. If i go to the friend list from there i can't invite anybody..

I was expecting something like a friend list to show who invite but instead i just have the standard global menu where i can't invite nobody.

But as i said.. the sphere is white and i'm connected,no problem about that. I'm just not able to join and/or invite anybody.

Ross_Beef
Heroic Explorer
Hi Welby,

So hopefully when you hit X you are landing on Universal Menu with the app logo showing front and center. It may be that you’re hitting an intermittent bug where the friends list takes a while to show up - try waiting on this section of Universal Menu (even for 30s) in case the friends list does show. It’s something we’re working to fix.

Welby
Adventurer
Thanks a lot for the reply!

Yes as you said the universal menu appears with the app logo in front and center but even after 5-10 secs nothing happen. I'll try to wait a lot longer and see if it will works.

Thanks!

Edit: Ok, I tried waiting on the Global menu for more than 2 minutes but still nothing. White Sphere,pressing X pop up the global menu but even waiting isn't useful since there's no friend list. I'll do more tries for longer period of time otherwise i'll just wait an official update on the avatar sdk i guess! 

Naveen98968
Explorer
Hi @welby,
How do you manage to connect oculus room and your sphere color changed to white.

I am having to creating room!,Its not connecting.

I follow all steps regarding initialization and Room API.

I have and Query too,Do we need to upload binary to test above things under development.?

thanks in advance

SkyMage
Explorer
I haven't tested the invite feature yet, but it would require the following:
* two Oculus accounts, running on real oculus equipment (unity editor without DK2 or CV1 will be kicked)
* An APK with a properly formatted androidmanifest.xml uploaded to the alpha channel
* both accounts invited to the alpha channel, having accepted the invite, and downloaded the app from the oculus store.
The app on the store doesn't have to be functional. After it's been installed once, it can be uninstalled, and working test builds can be run on the phone.
I suppose those two oculus accounts would also need to be eachother's friend.
Accurate to the best of my knowledge, hope it helps 🙂

Anonymous
Not applicable
Having same problem (X-button does not bring up any invite screen - just traditional oculus home with the developer icon of my app in the center). I saw in another post that you were suppose to have the app installed in Home. When I look in home I can see the app that I'm developing but it has a cross across the icon saying Not Valid and under it it says Not Installed. No apparent way of installing an app that is being run from the Unity editor - and doing a standalone build each time you change something in the code seems rather extensive during development?

Anonymous
Not applicable
If you got stuck here is the code that I wrote to get around broken LaunchInvitableUserFlow() method. In Playercontroller.cs replace the checkInput() method with the following two methods:









//Added to bypass broken Rooms.LaunchInvitableUserFlow(roomManager.roomID)

    void inviteAll(Oculus.Platform.Message<Oculus.Platform.Models.UserList> message) {

        if (message.IsError) {

            Debug.Log ("Houston we got a Problem!!");

        } else {

            List<User> userList = message.Data.Data;

            foreach (User u in userList) {

                Debug.Log ("Sending invite to user: "+u.OculusID+" invite: "+u.InviteToken);

                Rooms.InviteUser (roomManager.roomID, u.InviteToken);

            }

        }

    }



    // Check for input from the touch controllers

    void checkInput()

    {

        if (UnityEngine.Application.platform == RuntimePlatform.Android) 

        {

            // GearVR Controller



            // Bring up friend invite list

            if (OVRInput.GetDown(OVRInput.Button.Back)) 

            {

                Rooms.LaunchInvitableUserFlow(roomManager.roomID);

            }

            

            // Toggle Camera

            if (OVRInput.GetDown(OVRInput.Button.PrimaryTouchpad)) 

            {

                ToggleCamera ();

            }



            // Toggle Help UI

            if (OVRInput.GetDown(OVRInput.Button.PrimaryIndexTrigger)) 

            {

                ToggleUI ();

            }

        }

        else 

        {

            // PC Touch 



            // Bring up friend invite list

            if (OVRInput.GetDown(OVRInput.Button.Three)) 

            {

                //Rooms.LaunchInvitableUserFlow (roomManager.roomID);

                RoomOptions roomOptions = new RoomOptions();

                roomOptions.SetRoomId (roomManager.roomID);

                Rooms.GetInvitableUsers2(roomOptions).OnComplete(inviteAll);

            }

            

            // Toggle Camera

            if (OVRInput.GetDown(OVRInput.Button.Four)) 

            {

                ToggleCamera ();

            }



            // Toggle Help UI

            if (OVRInput.GetDown(OVRInput.Button.PrimaryThumbstick)) 

            {

                ToggleUI ();

            }

        }

    }






Anonymous
Not applicable
I also can not invite any user.
- using "oculus integration" asset from unity asset store with "unity 2017.2.0f3"
- added oculus ID's to platform and avatar settings
- I have blue floor, white sphere.
- adjusted script according to comment above.

Anyone got this running with any success?

Will try again using separate packages in stead of assetstore pack.

Anonymous
Not applicable
Updated to Dash-beta and now it seems to work. Well, I think 🙂 Guess I would need someone else with the app installed too to actually invite them :pensive:
At least I'm getting a "no players available" warning.