Forum Discussion

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

Oculus Meta Avatar unable to load second time after scene change without close app

Hello All,

 

I am trying to load Avatar from CDN. First-time avatar loading successfully. But changes the scene and tries again avatar getting below error log in response of OvrAvatarManager.Instance.UserHasAvatarAsync(xxxxxxxxxxxxxxxx).

 

Unable to send avatar status request for _userId : xxxxxxxxxxxxxxxx

 

Try First and Seconds time getting status log user-related:

- GetUserLogged success

 

Does anyone face an issue on loading seconds time meta avatar?

  • Anonymous's avatar
    Anonymous
    4 years ago

    [ANSWER SOLVED]

     

    I think I solved it, Issue is a related access token.

    On the second time when we load avatar after some scene changes operation, the app has already access token valid but we need to call set Access token again in OVRAvatarEntitlement by using OvrAvatarEntitlement.ResendAccessToken();

     

    Now I can able to load avatar as many times as I want even after scene changes.

     

    Hope this helps others ✌️

3 Replies

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous

    [ANSWER SOLVED]

     

    I think I solved it, Issue is a related access token.

    On the second time when we load avatar after some scene changes operation, the app has already access token valid but we need to call set Access token again in OVRAvatarEntitlement by using OvrAvatarEntitlement.ResendAccessToken();

     

    Now I can able to load avatar as many times as I want even after scene changes.

     

    Hope this helps others ✌️

    • AnmaaVR's avatar
      AnmaaVR
      Member

      Where did you call the OvrAvatarEntitlement.ResendAccessToken(); ?
      Also, where should I set the Token?