cancel
Showing results for 
Search instead for 
Did you mean: 

AsyncInitialize issue

Jimmymore
Explorer
Hi there,
I'm currently working on setting entitlements in app and found some issue with async operation, espacially AsyncInitialize.
It is kinda stuck and not processing, I had to use normal Initialize instead. In code below, the callback OnComplete in Async is never calling. Any suggestions?
Oculus.Platform.Core.AsyncInitialize().OnComplete((Oculus.Platform.Message<Oculus.Platform.Models.PlatformInitialize> platformData) => {
Oculus.Platform.Entitlements.IsUserEntitledToApplication().OnComplete((Oculus.Platform.Message msg) => {
m_Initialized = true;
if (!msg.IsError) // Entitlement check passed
{
m_EntitlementPassed = true;
}
else // Entitlement check failed
{
m_EntitlementPassed = false;
}
});
});


3 REPLIES 3

Jimmymore
Explorer
Platform SDK version is 1.17, comes with Unity utilities v 1.15
Yes I have, I pattern it on documentation, but it is missing Async OnComplete code. My solution should work, there is no mistake within high level code.

Jimmymore
Explorer
@imperativity
Quick question, late answer, sorry I had some work. AppID is stored in OculusPlatformSettings,asset, it is loading correctly. Seems like it requires running instance of Oculus application when playing inside Unity Editor.

juanoldinho
Heroic Explorer
Hi,

Yes, Oculus Home needs to be running even when using the Unity Editor.
Please tag me, @juanoldinho, in your forum post/response if you need immediate assistance or want additional support or context on an issue you are having with our software or integrations.

Having an issue with our platform, services, or integrations?

Try using our new bug tool to report this and receive emailed updates as we proceed to address it internally.