Trouble with Oculus Entitlement Check in Unity: Error on Device, Fine in Editor
Hey everyone, I've encountered an issue with my project and was hoping someone could assist me. I'm currently working on a project in Unity where I'm trying to load a personal avatar and pass the entitlement check. Initially, everything was running smoothly, but all of a sudden, I started encountering the 'oculus.platform.models.error' error. I took the step to update the Oculus app, and the issue seemed to resolve itself, as it started working again in the Unity editor. However, when I created the APK and tried it on my Oculus device, the same error popped up again. Strangely, this error now only occurs on my Oculus device, while it's still working fine within the editor. And this doesn't not happens at all to my friend. Here's the code snippet I'm using for the entitlement check. Could someone kindly assist me in debugging this?Thanks! public class UserEntitlement : MonoBehaviour { [SerializeField]private static ulong OculusID; [SerializeField]private Action OnEntitlementGranted; private void Awake() => EntitlementCheck(); private void EntitlementCheck() { try { Core.AsyncInitialize(); Entitlements.IsUserEntitledToApplication().OnComplete(IsUserEntitledToApplicationComplete); } catch (UnityException e) { Debug.LogError("Platform failed to initialize due to exception."); Debug.LogException(e); } } private void IsUserEntitledToApplicationComplete(Message message) { if (message.IsError) { Debug.LogError(message.GetError()); return; } Debug.Log("You are entitled to use this app."); Users.GetAccessToken().OnComplete(GetAccessTokenComplete); } private void GetAccessTokenComplete(Message<string> message) { if (message.IsError) { Debug.LogError(message.GetError()); return; } OvrAvatarEntitlement.SetAccessToken(message.Data); Users.GetLoggedInUser().OnComplete(GetLoggedInUserComplete); } private void GetLoggedInUserComplete(Message<User> message) { if (message.IsError) { Debug.LogError(message.GetError()); return; } OculusID = message.Data.ID; OnEntitlementGranted?.Invoke(); }1.8KViews0likes2CommentsRuns in Unity without issues, but not on the Oculus Quest
Hi all, Developed a meditation app for the Quest. It was building and running on the Quest great for the past three months. I came back to make a few edits on the position of game objects, nothing major, and it no longer runs on the Quest, the older version still does. It builds to the quest successfully, but when I launch the apk from the unknown sources folder it says "Refuge1" keeps stopping. Worryingly, while the project use to be called simply Refuge1 in the unkown sources folder, its now called "com.meditation.refuge1". This seems to indicate it doesn't have the right folder to start. So I ran logcat, and a couple of things standout: First, it can't seem to find the entitlement for the apk: LibraryProvider: Cannot find entitlement for com.Meditation.Refuge1 Second, OVRLibrary: null cursor received for query content://com.oculus.ocms.library/apps/com.Meditation.Refuge1 Third, Error opening archive /data/app/com.Meditation.Refuge1-2/base.apk: File mapping failed This seems to indicate to me its not pointing at the right place. But I don't know for the life of me how to change that. I am happy to provide the full logcat file if that helps. I am running Oculus Integration 1.38, because later versions didn't play nice. Unity Version 2019.1.14f1 All the best, Kit2.4KViews1like2CommentsEntitlement Checks and VR App Manager
Hello, Oculus keeps failing my app because they are saying they are still able to view the app after logging out of an Oculus Account that is authorized. However, whenever I log out of my Authorized Oculus account, I can't even launch the app. They keep telling me that they are launching it from the VR App Manager. I guess I am missing something and I am not sure what they mean by VR App Launcher. Anyone else having this issue? Or better yet have a fix? When I change my AndroidManifest from info to launcher and get the app icon on the phone, it crashes if I am logged out (desired behavior). Thanks!1.5KViews2likes6Comments