Aframe: Doesn't work continuously in webxr mode on ios WebXR Viewer 2.0 app

Created on 7 Oct 2020  Â·  8Comments  Â·  Source: aframevr/aframe

Run this example: https://aframe.glitch.me/
on this app: https://apps.apple.com/us/app/webxr-viewer/id1295998056
In AR mode it's working only from 10 to 20 seconds, and then it exited AR mode.
App WebXR Viewer run on iPhone 8 plus, iOS 13.7
Webxr example without aframe still working good in this app

Most helpful comment

Version 14.0.1 is running longer but still stops after about 1 minute.
My iPhone 8 Plus updated from 13.7 to 14.0.1, and it works for 1 minute.
Another phone iPhone XS Max, iOS 14.0.1 works for 1 minute and 15 seconds.
About WebXR Viewer, it is just move to new repository from version 2, now it is based on the Firefox for iOS source, on branch webxr:
https://github.com/mozilla-mobile/firefox-ios/tree/webxr
This is old repository (version 1):
https://github.com/mozilla-mobile/webxr-ios
Thank you for your attention.

I tried debug in enterAR function of a-scene.js file:
https://github.com/aframevr/aframe/blob/master/src/core/scene/a-scene.js
I see in this line (in enterVRSuccess function) maybe related to the problem:

self.renderer.setAnimationLoop(self.render);

And then I found in three.js document:
https://threejs.org/docs/#api/en/renderers/WebGLRenderer.setAnimationLoop

.setAnimationLoop ( callback : Function ) : null
callback — The function will be called every available frame. If `null` is passed it will stop any already ongoing animation.

I hope anyone canbe help me to make it clearer.
I will try debug in three.js

All 8 comments

It works for me on iPhone X and iOS 14.0.1

FYI, As far as I know the webxr viewer is no longer maintained. The Mozilla team that used to maintain it closed down.

Version 14.0.1 is running longer but still stops after about 1 minute.
My iPhone 8 Plus updated from 13.7 to 14.0.1, and it works for 1 minute.
Another phone iPhone XS Max, iOS 14.0.1 works for 1 minute and 15 seconds.
About WebXR Viewer, it is just move to new repository from version 2, now it is based on the Firefox for iOS source, on branch webxr:
https://github.com/mozilla-mobile/firefox-ios/tree/webxr
This is old repository (version 1):
https://github.com/mozilla-mobile/webxr-ios
Thank you for your attention.

I tried debug in enterAR function of a-scene.js file:
https://github.com/aframevr/aframe/blob/master/src/core/scene/a-scene.js
I see in this line (in enterVRSuccess function) maybe related to the problem:

self.renderer.setAnimationLoop(self.render);

And then I found in three.js document:
https://threejs.org/docs/#api/en/renderers/WebGLRenderer.setAnimationLoop

.setAnimationLoop ( callback : Function ) : null
callback — The function will be called every available frame. If `null` is passed it will stop any already ongoing animation.

I hope anyone canbe help me to make it clearer.
I will try debug in three.js

Run this example: https://aframe.glitch.me/
on this app: https://apps.apple.com/us/app/webxr-viewer/id1295998056
In AR mode it's working only from 10 to 20 seconds, and then it exited AR mode.
App WebXR Viewer run on iPhone 8 plus, iOS 13.7
Webxr example without aframe still working good in this app

Can you run this example on WebXR Viewer? https://xr-spinosaurus.glitch.me/
I tested it, it worked on iphone 11

I cannot reproduce the issue on iPhone X after running https://aframe.glitch.me/ or https://xr-spinosaurus.glitch.me/ for 5 minutes+. It's likely a bug affecting only older phones. I don't think there's anything actionable on A-Frame side.

Unfortunately, the team at Mozilla that maintained the gecko view / webxr on ios and the webxr viewer shut down. There are no longer active maintainers and issues will likely remain unaddressed.

I cannot reproduce the issue on iPhone X after running https://aframe.glitch.me/ or https://xr-spinosaurus.glitch.me/ for 5 minutes+. It's likely a bug affecting only older phones. I don't think there's anything actionable on A-Frame side.

Unfortunately, the team at Mozilla that maintained the gecko view / webxr on ios and the webxr viewer shut down. There are no longer active maintainers and issues will likely remain unaddressed.

That sucks. My little Web AR project relies on Webxr Viewer to run on ios... Hope ios can support WebXR soon.

Run this example: https://aframe.glitch.me/
on this app: https://apps.apple.com/us/app/webxr-viewer/id1295998056
In AR mode it's working only from 10 to 20 seconds, and then it exited AR mode.
App WebXR Viewer run on iPhone 8 plus, iOS 13.7
Webxr example without aframe still working good in this app

Can you run this example on WebXR Viewer? https://xr-spinosaurus.glitch.me/
I tested it, it worked on iphone 11

I ran it, but it took 1 minute only to stop

Today I tested aframe ar on iphone11/ 12 / XR. They all worked for 15~50 secs then freeze. I suspect it might had something to do with auto sleeping?

About WebXR Viewer, it is just move to new repository from version 2, now it is based on the Firefox for iOS source, on branch webxr:

Mozilla laid off WebXR team in August. Do you have any source about the project will be maintained?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wlhm1984 picture wlhm1984  Â·  5Comments

ghost picture ghost  Â·  3Comments

MrBokeh picture MrBokeh  Â·  5Comments

jonikorpi picture jonikorpi  Â·  4Comments

beyerz picture beyerz  Â·  3Comments