Skip to main content
New Participant
October 18, 2023

Disable guardian at runtime in Mixed Reality Apps (Unity)

Hi! I'm in the process of creating a mixed reality app that integrates both passthrough functionality and the Scene API. Despite conducting a full room scan and navigating around, the guardian system continues to restrict the app.  I'm searching for a way to programmatically deactivate the guardian system, either in Unreal or Unity. Considering that Meta's "First Encounter" demo doesn't encounter these boundary issues, I'm convinced there must be a way to resolve this.

Thank u!

14 replies

New Participant
October 27, 2023

 

<uses-feature
android:name="com.oculus.feature.CONTEXTUAL_BOUNDARYLESS_APP"
android:required="true" />

 

Add this to AndroidManifest.xml, it just works!

Inspiring
April 14, 2024
Thats funtastic but as always under unity  topic 🙂 do you know how you can implement to the unreal
actualy its all about android mainfest xml file but
 
Problem is Unreal documention say "You should never edit the AndroidManifest.xml file under any circumstances. Any edits that need to be made to the AndroidManifest.xml file should be done inside the UE Editor in the Advanced APK Packing section."
I couldn't figure out how to add the code to that section. 
when i add as a extra setting (code line) i couldnt build it i can try as a tag but  i dont know how does it work
any idea would help
New Participant
November 13, 2023

That's works.  But when we try and submit that to Store we get an error about containing an experimental feature.

Sandstedt
Inspiring
November 30, 2023

You have probably checked the "Experimental features enabled" checkbox in OVR Manager. Maybe to use the experimental depth API, that is... experimental. And experimental features are not allowed on AppLab or the Store. So I guess you need to wait until the feature is production ready, or you need to contact your Meta developer relation contact if you have one and ask if they can make an exception.

 

Unity XR Developer
New Participant
November 30, 2023

The thing is there are Store applications (e.g. Arkio) that have this feature enabled - and those vendors have had a special dispensation to use this feature.  I wish that if a feature is available to should be available to all ISVs not just select ones!!!

Participant
November 14, 2023

Thank you so much domexie!!! I've been waiting for this feature for a year!

Inspiring
February 26, 2024

Man, I could really do with this for my app PozeAR.

When I turn it on, it works great, but then I can't upload the APK to App Lab 😞

Please Meta allow us to use this feature!

Inspiring
February 26, 2024

Sandstedt fair point, but it's not the 'Experimental Features Enabled' checkbox. It's specifically this flag. The error even says "This APK includes the feature, `com.oculus.feature.CONTEXTUAL_BOUNDARYLESS_APP`, which is not allowed"

New Participant
May 21, 2024

I got this working but I still have to start the app inside of the boundary. Is there a way to change this?

New Participant
June 6, 2024

What did you do??? I have the same problem

New Participant
June 6, 2024

Are you using Unity? I am writing an app in native openxr based on XrApp.h. So i had to add a block of code to create the passthrough layer and start it in the SessionInit function. I also added a block into PreProjectionAddLayer to add the passthrough composition layer. And of course I had to add the capability to the AndroidManifest.xml.

Inspiring
June 6, 2024

Please vote for this issue here:

https://communityforums.atmeta.com/t5/Ideas/Allow-apps-to-disable-boundary-CONTEXTUAL-BOUNDARYLESS-APP/idi-p/1166852

If it gets enough votes, Meta might listen to us.