Cannot pass Entitlement check in Unity Editor
Hello,
I'm developing a small VR app with colocation features on Meta Quest 2. The app includes:
- Unity 2022.3.20f1
- Photon Unity Networking 2 2.4
- Meta XR Platform SDK 63.0.0 (I'm using Building Blocks)
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:
- Creating a Quest app on Meta Quest Developer platform & using provided "App ID" in Unity Editor
- Creating a Rift app on Meta Quest Developer platform & using provided "App ID" in Unity Editor
- Requesting access to "User ID" and "User Profile" on "Data Use Checkup" (on Rift and Quest apps)
- Uploading a test build to "Alpha" channel
- Enabling developer mode/etc on my Quest 2 HMD (had done this long ago due to building other VR apps)
My questions are:
- What am I missing to pass the Entitlement check when running my app from Unity Editor?
- Is it possible to interface with Platform features, such as User Profile Info or Spatial Anchors, from Unity Editor?
- If not, what is the dev workflow to work with these features?
- Do I really need to use different "App ID" to test on Editor & Quest or should I use the same Quest app ID in both fields (I tried different combinations here with no luck)?
