Forum Discussion
mango-man123
2 years agoHonored Guest
Oculus API entitlement check failure
Hi everyone -
I am trying to use the Oculus leaderboards API in my app 'Dungeon of Nekros'. I am using Unity 2019.4.28f1 and the Oculus XR Plugin v1.5.1. The call to entitlement check keeps failing when in Unity and also when in the standalone app. The Oculus Platform Settings is not letting me enter my credentials for some reason - not sure if it's because I'm in an older version of Unity and it's only compatible with a new version. Please advise on potential solutions. Thanks! Jim
** I am using the following code -
using Oculus.Platform;
...
void Awake()
{
Core.LogMessages = true;
Core.Initialize(myAppID);
if (Core.IsInitialized() == true) { checkEntitlement(); }
}
void checkEntitlement() {
Entitlements.IsUserEntitledToApplication().OnComplete( (Message msg) => {
if (msg.IsError) {
// User is NOT entitled. Debug.Log("LeaderboardManager -> Error: User not entitled -> " + msg.GetError().Message);
}
else {
// User IS entitled
Debug.Log("LeaderboardManager -> Success: User entitled" + msg.GetError().Message);
}
});
}
No RepliesBe the first to reply
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
- 2 months ago
- 3 months ago