cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Entitlement check

Gruzzy
Level 2
I'm having this problem with Unity 5.6.1p2 and Oculus Platform v 1.19, can you please help?

When running through the editor, the Initialize passes but the entitlement fails with OVR6139226
Using the same appID and building to Android, the Initialize fails after returning on AndroidPlatform.cs line 16

P.S. Please excuse the angriness of the emoji that was randomly assigned to me.
5 REPLIES 5

Gruzzy
Level 2
Are there any android permissions that the Oculus Platform needs to have set?

Jamoke
Level 3
I had some problems as well, except without the angry emoji 🙂

            // Entitlements Check
            Entitlements.IsUserEntitledToApplication().OnComplete(
                (message) =>
                {
                    if (message.IsError)
                    {
                        Debug.Log("Entitlements check failed!" + message.GetError());
                    }
                    else
                    {
                        Debug.Log("Entitlements check worked!  Play On!");
                    }
                }
            );

My app didn't require any additional permissions.  I did have some problems without using a Lambda.  Life cycle issues in Unity were difficult to track down, so give a lambda a try, and see if that fixes things.

SxKx
Level 5
Also stuck with not being able to test EntitlementCheck on the device (gearvr).  I´ve followed the instructions but when trying to test it on device I can´t get it to fail, which leads to a conclusion that it is not effective, when running the app from different account or straight from .APK logged out .
 This check should be built in the Platform it self much like the "exit to OculusHome" screen. Completely irrelevant step if there´s not a simple way to test it on device.


Gruzzy
Level 2
After further investigation, we discovered the app wasn't set up correctly in the dashboard. We needed to add an alpha build that had Entitlements set up. Then we needed to add the emails of all test accounts. 
This article explains it, but is harder to find: 
https://developer.oculus.com/documentation/platform/1.7/concepts/pgsg-3-pw-platform-walkthrough/

While this one that we started with didn't mention the requirements on the dashboard side:
https://developer.oculus.com/documentation/platform/latest/concepts/pgsg-get-started-with-sdk/

Gruzzy
Level 2
After further investigation, we discovered the app wasn't set up correctly in the dashboard. We needed to add an alpha build that had Entitlements set up. Then we needed to add the emails of all test accounts. 
This article explains it, but is harder to find: 
https://developer.oculus.com/documentation/platform/1.7/concepts/pgsg-3-pw-platform-walkthrough/

While this one that we started with didn't mention the requirements on the dashboard side:
https://developer.oculus.com/documentation/platform/latest/concepts/pgsg-get-started-with-sdk/