cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Users.GetLoggedInUser

Dev_protu
Honored Guest

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

Dev_protu_1-1671204772311.png

Dev_protu_2-1671204795503.png

Dev_protu_4-1671204844559.png

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

 

Thanks in advance for any help!

1 ACCEPTED SOLUTION

Accepted Solutions

Dev_protu
Honored Guest

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!

View solution in original post

1 REPLY 1

Dev_protu
Honored Guest

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!