Forum Discussion
HedgehogTeam
9 years agoExplorer
Entitlement checking : Contradiction in the documentation about Unity and broken link
Hi,
I desperately looking for information on how to add Entitlement checking in unity app. But in the literature there are two contradictory information :smile:
From : https://developer3.oculus.com/documentation/game-engines/latest/concepts/unity-mobileprep/
=> Entitlement checking, used to protect apps from unauthorized distribution, is disabled by default in Unity.
And the link about Entitlements : App Autorization is a broken link.
From : https://developer3.oculus.com/documentation/mobilesdk/0.4/concepts/mobile-entitlements/
=> Entitlement checking is enabled by default in Unity
Which is correct ?
On this subject, there is everything and anything, would not it be possible to have the correct procedure for Unity for Gear VR ?
thank you
Nicolas
I desperately looking for information on how to add Entitlement checking in unity app. But in the literature there are two contradictory information :smile:
From : https://developer3.oculus.com/documentation/game-engines/latest/concepts/unity-mobileprep/
=> Entitlement checking, used to protect apps from unauthorized distribution, is disabled by default in Unity.
And the link about Entitlements : App Autorization is a broken link.
From : https://developer3.oculus.com/documentation/mobilesdk/0.4/concepts/mobile-entitlements/
=> Entitlement checking is enabled by default in Unity
Which is correct ?
On this subject, there is everything and anything, would not it be possible to have the correct procedure for Unity for Gear VR ?
thank you
Nicolas
8 Replies
Replies have been turned off for this discussion
- zenshinExplorerHi Nicholas,
The second link you're looking at there is from a really old version of the Mobile SDK - notice where the top link says "latest" the second link says "0.4".
We moved our discussion for entitlement checking out of the Mobile docs once we started shipping Rift apps as well - the best place to go for this currently is our Platform documentation. Entitlement checking is now considered part of the Platform SDK.
This is the current canonical discussion:
https://developer3.oculus.com/documentation/platform/latest/concepts/dg-core-content/#dg-cc-entitlements
Sorry about the broken link there - I'll correct it soon. It should take you to the link I provided above.
Can you say more about what you're looking for for Unity and Gear VR? I'm not sure I follow your question.
Thanks, and sorry for the confusion! - zenshinExplorerGurp.
- zenshinExplorerSorry about the empty messages there - had a temporary posting issue that resulted in a bunch of duplicate posts.
- zenshinExplorerGork.
- HedgehogTeamExplorerThank you.
I just looking how we implement it in Unity, a simple step by step will be welcome with an example script.Moreover this is mandatory for the submission of the application, this much stress.
I found this post:
https://forums.oculus.com/developer/discussion/40444/unity-iap-tutorial
which seems to explain the processFollowing the message,I'm a freelance, and there are more and more demand on your technology, but which back each time by my clients is that gives them 100% acceptance submission, because after having worked in their company, and read your online documentatoin they are afraid of wasting time and money - HedgehogTeamExploreroups
- HedgehogTeamExplorerI finally found the right way to implement entitlement check. It's very simple, but to find all the information necessary it's a nightmare (old link, missing information etc..). While a sample script in a topic "How to Implement entitlement check in Unity", would be much easier
For all that research how to do it
- http://developer3.oculus.com/documentation/platform/1.5/tasks/dg-update-game-unity/
- Download OculusPlatform SDK, import Unity package from it
- You need to install Oculus App under window otherwise you will have a dll error in Unity
Example script :using UnityEngine;using System.Collections;using Oculus.Platform;using UnityEngine.Events;public class EntitlementManager : MonoBehaviour {public string appId;void Start(){Oculus.Platform.Core.Initialize(appId );Oculus.Platform.Entitlements.IsUserEntitledToApplication().OnComplete( EntitlementChecked );}void Update(){Request.RunCallbacks();}void EntitlementChecked(Message msg){// Okif (!msg.IsError){// Do what you want, load main menu}// Not Okelse{UnityEngine.Application.Quit();}}} - HedgehogTeamExplorerI finally found the right way to implement entitlement check.
For all that research how to do it
- http://developer3.oculus.com/documentation/platform/1.5/tasks/dg-update-game-unity/
- Download OculusPlatform SDK, import Unity package from it
- You need to install Oculus App under window otherwise you will have a dll error in Unity
Example script :using UnityEngine;using System.Collections;using Oculus.Platform;using UnityEngine.Events;public class EntitlementManager : MonoBehaviour {public string appId;void Start(){Oculus.Platform.Core.Initialize(appId );Oculus.Platform.Entitlements.IsUserEntitledToApplication().OnComplete( EntitlementChecked );}void Update(){Request.RunCallbacks();}void EntitlementChecked(Message msg){// Okif (!msg.IsError){// Do what you want, load main menu}// Not Okelse{UnityEngine.Application.Quit();}}}
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device