Catch an error when activateAR() fails #4371
Unanswered
AntonioMartinezC
asked this question in
Q&A
Replies: 1 comment 2 replies
-
The case I need this for is for one when a user denied the permission not knowing what it was for or just by accident and then the button just does nothing all of the sudden and the other is that older devices detect as "yes we can do web xr and yes we can do immersive ar sessions" and then they cant. And working with blob the model just turns out as completely black altho ar modes are only set to webXR and quicklook (happening on android and ios, although i believe the ios version is grey and not black which would align with my experience with gltf/usdz) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The thing is I am strugeling with permission detection and that I can not figure out how to check with js if some "xr" permission is set according to all documentation i could find there is no such thing?
Buuuuuut it would be super nice if there would be a way to do something like try{activateAR()} catch(err) {console.log(err)} is there any way to do that before i mess with the lib? ^^
Beta Was this translation helpful? Give feedback.
All reactions