cancel
Showing results for 
Search instead for 
Did you mean: 

Can't use the Platform in Standalone Mode, and Users.GetLoggedInUser() does not work.

wappaboyVR
Honored Guest
I want to get Data of logged in Oculus user, so I went to this page documentation/unity/ps-setup/ and tried to activate "Use Standalone Platform", but that checkbox was disabled.
Also the following script does not work on the first line. Users.GetLoggedInUser() seems to be NULL.
How do I get it to work in Standalone mode?

void Start()
{
Users.GetLoggedInUser().OnComplete((Message<User> uMsg) =>
{
if (uMsg.IsError)
{
Debug.Log("Platform: GetLoggedInUser() failed. Reason: " + uMsg.GetError().Message );
return;
}
else
{
User _localUser;
_localUser = uMsg.Data;
Debug.Log(_localUser.DisplayName);
}
});
}

[Using game engine and Oculus SDK]
Unity 2019.4.18f1 (LTS), Oculus SDK 1.55.1
4 REPLIES 4

wappaboyVR
Honored Guest
Here's a screenshot of the OculusPlatformSettings.
"Use Standalone Platform" is disabled.
hicpgg1y5nst.jpg

olindstroem
Honored Guest

I have the same issue. Curious about how you solved it.

solaris.nite
Protege

I'm having the same issue. Our application requires completion of a callback confirming entitlement before doing anything else so for me our application just never gets past initialization because

Oculus.Platform.Entitlements.IsUserEntitledToApplication().OnComplete(<callback>);

never actually triggers the callback. Like you, I am unable to enable the standalone platform.

VARSoculus
Explorer

I have the exact same issue still in 2023 and I am completely unable to find a solution, there is absolutely no documentation for this thing.