Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Archi16's avatar
Archi16
Explorer
5 years ago

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?

2 Replies

Replies have been turned off for this discussion
  • Do you have a valid quest app id via your backend, and is it assigned in the relevant places within your code? 

  • 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.