Forum Discussion

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

Problems with Users.GetLoggedInUser

Hello everyone!

I'm with a problem related to accesing Oculus account information and using it in my game. The problem is that when I try to get the user info, they all return empty and this happens to all of the users, even if I’m using an app Apk intalled on Oculus, or downloading the game from the store in Beta release channel. The only way I was able to make it work was with a test user, but I would like to try with my own account.

Notes:

  • I’ve done the Entitlement Check and it’s passing successfully
  • I’ve already requested the features on the Data Use Checkup in the dashboard (User ID and User Profile) and they are approved
  • As mentioned, I’ve created a Test User and it’s inheriting my organization entitlements and, for some reason, only this user works.

I’m not sure what the problem is, the code seems ok (since the test user works), but I don’t know how to make it work with other users (such as other developers in my organization). Any toughts?

 

Here is some of my code

In the image above, the "_username" debug shows nothing

 

Thanks in advance for any help!

  • I kinda solved the problem.

    I was trying to access the GetUser().DisplayName, but for some reason my account does not have this value, so that's why it was returning as an empty string. I changed to get the .OculusID and now is working as expected!

1 Reply

Replies have been turned off for this discussion
  • I kinda solved the problem.

    I was trying to access the GetUser().DisplayName, but for some reason my account does not have this value, so that's why it was returning as an empty string. I changed to get the .OculusID and now is working as expected!