Forum Discussion
wappaboyVR
5 years agoHonored Guest
Can't use the Platform in Standalone Mode, and Users.GetLoggedInUser() does not work.
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?
[Using game engine and Oculus SDK]
Unity 2019.4.18f1 (LTS), Oculus SDK 1.55.1
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
Replies have been turned off for this discussion
- VARSoculusExplorer
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.
- solaris.niteProtege
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.
- olindstroemHonored Guest
I have the same issue. Curious about how you solved it.
- wappaboyVRHonored GuestHere's a screenshot of the OculusPlatformSettings.
"Use Standalone Platform" is disabled.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 years ago
- 11 months ago