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
Level 2
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
3 REPLIES 3

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

olindstroem
Level 2

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

solaris.nite
Level 4

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.