AR Rendering Issue on First-Time Camera Permission Grant on Android Devices
- Dominant language
- TypeScript
- Stars
- 8.2k
- Forks
- 947
- PR merge metrics
- No merged PRs in 30d
Description
### Description
I'm encountering an unusual problem with my augmented reality implementation.
Specifically, the issue arises when attempting to render an object after granting camera permissions to the browser on Android devices.
On the first attempt to initiate the AR feature (which prompts the request for camera permissions), the object fails to render. Interestingly, subsequent attempts do not present this issue, and the AR feature works as expected once camera permissions have already been granted.
This problem only seems to occur after performing a factory reset on the device, after which the augmented reality feature launches to a completely blank screen.
I am presently utilizing the library '@intelligentgraphics/ig.ar' to initiate Augmented Reality (AR) across various devices.
This library, which can be found at https://www.npmjs.com/package/@intelligentgraphics/ig.ar, it provides several methods and automatically opens the appropriate file extension based on the device in use.
AR Modal Link:
https://www.xxxlutz.at/p/linea-natura-schreibtisch-120-65-76-cm-in-wildeiche-002748005501?ARRedirected=true
Please note that this link should be opened on an Android device where Chrome has not yet been granted camera permissions.
#### Live Demo

### Version
- model-viewer: vX.X.X
### Browser Affected
- [X] Chrome, version: any version, not related to chrome
- [ ] Edge
- [ ] Firefox
- [ ] IE
- [ ] Safari
### OS
- [X] Android
- [ ] iOS
- [ ] Linux
- [ ] MacOS
- [ ] Windows
- Samsung galaxy s23 ultra - Android: 13 (5.15.41), chrome 116.0.5845.92 ar play service 1.39
- Google Pixel 6 - Android 13, Chrome 116.0.5845.92, Goole Play Services for AR 1.39.232070593
- Google Pixel 7 - Android 13, Goole Play Services for AR 1.39.232070593
- Redmi Note 11S with MIUI version 14.0.3
- Xiaomi A3 - Android 11
### AR
- [ ] WebXR
- [X] SceneViewer
- [ ] QuickLook
Utils.mjs that opens the scene viewer
https://www.npmjs.com/package/@intelligentgraphics/ig.ar?activeTab=code (line 78)
Contributor guide
Assessment
This issue has not been assessed yet.