No Oculus Entitlement callbacks being recieved
I am trying to test this in editor for oculus go.
Here is a pic of my OculusPlatformSettings
- I am using a test user that has been assigned to my application via the application manager on the oculus website
Here is the code:
Here is a pic of my OculusPlatformSettings
- I am using a test user that has been assigned to my application via the application manager on the oculus website
Here is the code:
void Awake () { Debug.Log("Core.IsInitialized: " + Core.IsInitialized()); Oculus.Platform.Core.AsyncInitialize(Oculus.Platform.PlatformSettings.MobileAppID); Debug.Log("Core.IsInitialized: " + Core.IsInitialized()); Oculus.Platform.Entitlements.IsUserEntitledToApplication().OnComplete(EntitlementCallback); Debug.Log("AppID: " + Oculus.Platform.PlatformSettings.MobileAppID); testText.text = Oculus.Platform.PlatformSettings.MobileAppID; }
void EntitlementCallback(Message msg)
{
if (!msg.IsError)
{
//Debug.Log(msg);
testText.text = "Oculus entitlement check Successs";
// Entitlement check passed
}
else
{
Debug.Log(msg);// Entitlement check failed
Debug.LogError("Oculus entitlement check FAILED.");
//UnityEngine.Application.Quit();
}
}
