cancel
Showing results for 
Search instead for 
Did you mean: 

Oculus Avatar Sdk for Unity

Archi16
Explorer
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?
2 REPLIES 2

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

Archi16
Explorer

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.