04-10-2024 02:08 AM
Hello,
I'm developing a small VR app with colocation features on Meta Quest 2. The app includes:
Currently I'm struggling on interfacing with any Oculus Platform features from the Unity Editor due "Missing entitlement for XXX (XXX)" error when running "IsUserEntitledToApplication". I need to pass this check in order to retrieve username (for display to other players) and to interface with Anchors API (I think - I haven't got to that step yet):
private void InitializeOculus()
{
Core
.AsyncInitialize()
.OnComplete(OnCoreInitialized);
void OnCoreInitialized(Message message)
{
if (message.IsError)
{
LogError(message.GetError().Message);
return;
}
Entitlements
.IsUserEntitledToApplication()
.OnComplete(OnEntitlementInitialized);
}
void OnEntitlementInitialized(Message message)
{
if (message.IsError)
{
LogError(message.GetError().Message);
return; // <- Fails here
}
Users
.GetLoggedInUser()
.OnComplete(OnUserInitialized);
}
void OnUserInitialized(Message<User> message)
{
if (message.IsError)
{
LogError(message.GetError().Message);
return;
}
var user = message.GetUser();
LogDebug($"Logged in: {user.DisplayName} ({user.OculusID})");
}
}
So far I've tried:
My questions are:
Solved! Go to Solution.
04-10-2024 05:49 AM
I dug around more and managed to resolve this:
For context, some screenshots:
The post that helped me figure this out: https://communityforums.atmeta.com/t5/Unity-VR-Development/Entitlement-Check-Failing/td-p/971466
04-10-2024 03:34 AM
I am having a similar problem. The issue I'm having with the entitlement and with the avatar specifically is that everything works in the editor in play mode with both the Meta XR simulator and on the headset while it's hooked up to the Oculus link. But as soon as I build an APK and attempt to run it on the headset it mysteriously just crashes and the logs are very very very odd. No real answers. I never had problems like this with version 62 and below. It was not until I got the version 63 that this was a problem. My data use checkup is fine. They say I have a privacy policy and everything. I do not understand why this stopped working and this is destroyed my project. Now I'm almost to the point to tell people they should not use the meta avatars at all if things like this are going to keep happening. I'm almost about to switch to ready player me and do everything in third person. I do not know what to do and there are no answers anywhere. I am begging somebody at Meta to help me, to help us figure this out please, please help us!!!???
04-10-2024 04:25 AM
Getting issues with entitlement and avatars SDK too. It crashes on build, using unity 2023.2.17 Meta SDK 63.0.0 and Avatars 24.1.1, tried rolling back to provious versions of the Meta SDK with no luck, it always crashes when trying to get the avatars from CDN even if everything is set up correctly and permissions are enabled in the product page.
04-10-2024 05:49 AM
I dug around more and managed to resolve this:
For context, some screenshots:
The post that helped me figure this out: https://communityforums.atmeta.com/t5/Unity-VR-Development/Entitlement-Check-Failing/td-p/971466
06-25-2024 10:58 AM
I was able to resolve the issue with the avatars because I had to check carefully when I got the email back to see that the avatars was included as part of the day to use checkup that was approved
06-25-2024 11:02 AM
I am having an issue with the entitlement. Check. The issues surrounds the very first part which is the initialization of the platform. I did some debugging and I found out that the reason my entitlement check was failing was first of all it didn't even get that far. It was because the platform is not initializing. I tried regular initialization. I tried to synchronous initialization and neither one of them seem to be working. I'm going to upgrade to version 66 of the core SDK and give it a whirl. And just to be sure, I checked my headset and it is version 66 as well. So I'm hoping that this can get resolved. My data use checkup is fine. Everything else works except for initializing the platform on an actual headset, not just in the editor.