question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Model viewer testing] Asset getting launched in AR mode even after denying the camera permission

See original GitHub issue

Description

Asset getting launched in AR mode even after denying the camera permission Steps:

  1. Take the link https://modelviewer.dev/examples/loading/ in the browser
  2. Go to Scene Viewer link
  3. Launch the model in AR mode
  4. Deny the camera permission when message appeared

Live Demo

Screenshot attached screen

Version

Hardware: Pixel 4a, Samsung S9

  • model-viewer: vX.X.X

Browser Affected

  • [ *] Chrome, version: 90
  • Edge
  • Firefox
  • IE
  • Safari

OS

  • Android
  • iOS
  • Linux
  • MacOS
  • Windows

AR

  • WebXR
  • [* ] SceneViewer
  • QuickLook

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12

github_iconTop GitHub Comments

4reactions
felipe-chamascommented, May 6, 2021

There is also a problem with this prompt in ar-only mode in scene -viewer, in which an alert fires with “Couldn’t load object” and closes the app.

3reactions
elalishcommented, May 20, 2021

Yeah, Scene Viewer already has a fix, but it’ll take a week or two to roll out, so this work around is recommended.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SceneViewer] AR not working on new installations/after new ...
Go to https://modelviewer.dev/examples/augmentedreality/#sceneViewer and try to place model in AR. It results in error such as "File could not ...
Read more >
Augmented reality with <model-viewer> | ARCore
When viewed on an ARCore-supported Android device, a <model-viewer> component with the ar attribute displays a button as shown in the following example:....
Read more >
Augmented Reality - <model-viewer>
This demonstrates the use of slots, as well as shared and unshared DOM between the 3D and AR modes. A slot is used...
Read more >
Previewing a Model with AR Quick Look - Apple Developer
The following code demonstrates previewing a scene named myScene from the app bundle.
Read more >
Flutter camera plugin: A deep dive with examples
If you're looking to add a custom UI to the camera view in your Flutter app, look no further than this in-depth, thorough...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found