Skip to main content
New Participant
April 7, 2020

Oculus Avatar Sdk for Unity

Hi.  Im trying to figure out how Oculus Avatar SDK works. 
For testing im using Oculus Quest.
The problem is - I cant get user ID,  which i need to load his/her own avatar of Oculus account.

Here is part of code:
Oculus.Platform.Users.GetLoggedInUser().OnComplete(OnGetLoggedIdUser);

private void OnGetLoggedIdUser(Message<User> message)
    {
        if (!message.IsError)
        {
                Debug.Log("========ID of User========"+message.Data.ID.ToString());
        }
    }

But message has error, which says "The user isn't signed in or their account state wasn't in a recoverable state."
What i should do to fix this?
This topic has been closed for replies.

2 replies

Inspiring
April 7, 2020
Do you have a valid quest app id via your backend, and is it assigned in the relevant places within your code? 
Archi16Author
New Participant
April 8, 2020

MikeF said:

Do you have a valid quest app id via your backend, and is it assigned in the relevant places within your code? 


If you mean App ID  then yes. I have created application in Oculus Dashboard, copied ID into Oculus->Platform in Unity(also tried by setting it with script).  
When im putting user id's in Local Avatar manually, it loads avatars correctly.