Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
mango-man123's avatar
mango-man123
Honored Guest
2 years ago

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