03-21-2018 07:36 PM
using UnityEngine;
using Oculus.Platform;
public class AppEntitlementCheck: MonoBehaviour {
void Awake ()
{
try
{
Core.AsyncInitialize();
Entitlements.IsUserEntitledToApplication().OnComplete(EntitlementCallback);
}
catch(UnityException e)
{
Debug.LogError("Platform failed to initialize due to exception.");
Debug.LogException(e);
// Immediately quit the application.
UnityEngine.Application.Quit();
}
}
void GetEntitlementCallback (Message msg)
{
if (msg.IsError)
{
Debug.LogError("You are NOT entitled to use this app.");
UnityEngine.Application.Quit();
}
else
{
Debug.Log("You are entitled to use this app.");
}
}
}
Could you explain to me why these error still appearing and if there's a solution?
I'll give thanks to everyone who support me in this topic.
:smile:
04-05-2018 03:49 PM
04-05-2018 05:21 PM
04-06-2018 12:55 PM
04-07-2018 09:37 PM
04-08-2018 10:15 AM
04-09-2018 09:25 AM
imperativity said:
@marko_rkm
@markhansaven
Hi, we were unable to reproduce this behavior in both your sample project provided above, our internal project mirroring your own, and a new project using Unity 2017.4.0f1.
However, we were finally able to reproduce this behavior by stopping all services associated with the oculus runtime. Do you have the runtime installed on either of your machines you are building on? If so, are the services actively running in the background? The Oculus runtime is required for testing your build on PC, and is the reason why the SDK is not initializing.
Please download and install it here: https://www.oculus.com/setup/
04-09-2018 04:47 PM
imperativity said:
@marko_rkm
@markhansaven
Hi, we were unable to reproduce this behavior in both your sample project provided above, our internal project mirroring your own, and a new project using Unity 2017.4.0f1.
However, we were finally able to reproduce this behavior by stopping all services associated with the oculus runtime. Do you have the runtime installed on either of your machines you are building on? If so, are the services actively running in the background? The Oculus runtime is required for testing your build on PC, and is the reason why the SDK is not initializing.
Please download and install it here: https://www.oculus.com/setup/
04-09-2018 04:47 PM
imperativity said:
@marko_rkm
@markhansaven
Hi, we were unable to reproduce this behavior in both your sample project provided above, our internal project mirroring your own, and a new project using Unity 2017.4.0f1.
However, we were finally able to reproduce this behavior by stopping all services associated with the oculus runtime. Do you have the runtime installed on either of your machines you are building on? If so, are the services actively running in the background? The Oculus runtime is required for testing your build on PC, and is the reason why the SDK is not initializing.
Please download and install it here: https://www.oculus.com/setup/
04-25-2018 04:54 AM
04-25-2018 05:36 AM