Ar.js: Tested the Example; Doesn't work on Chrome on IOS?

Created on 18 Feb 2019  路  12Comments  路  Source: jeromeetienne/AR.js

I tested the given sample;
The sample from the main page https://github.com/jeromeetienne/AR.js
The QR code or this https://jeromeetienne.github.io/AR.js/three.js/examples/mobile-performance.html

The camera is not loaded, when testing on Chrome on IOS.
I tested on my iPhone 6 and iPhone X, works on Safari but not on Chrome browser.

Is this not supported on Chrome on IOS devices?
I get an error saying
Webcam Error
Name:
Message: WebRTC issue-!
nagivator.mediaDevices not present in your browser.

While on Android, it works fine on chrome browser but not native browser (has scaling issue) I tested on Samsung Galaxy S5 and Samsung Galaxy Tab. The camera feed is at a smaller scale and the object does not appear at a proper position over the mark.

Most helpful comment

@nicolocarpignoli You missed the point here and this issue should not be closed:
This is about Chrome on iOS. As this doesn't even prompt for permission, there is no way to not give access.

All 12 comments

Which sample? There are many in the repository.

Sorry. I meant the sample from the main page https://github.com/jeromeetienne/AR.js
The QR code or this https://jeromeetienne.github.io/AR.js/three.js/examples/mobile-performance.html

I get that Webcam error when trying to run on chrome on IOS devices. Also updated my main post. Got some mixed up on the bugs I encountered. But everything should be up to date and able to reproduce everytime I test the example on the mentioned devices.

The https://github.com/jeromeetienne/AR.js#browser-support section currently is not very good.

I am alos getting an error for the mobile-performance example on current Chrome on current iOS:

2019-02-19 10 47 28

But this is more or less expected as Chrome internally uses a WebView which on iOS doesn't support the tech needed for AR.js to work.

As I told here https://github.com/jeromeetienne/AR.js/issues/463 probably you have not given access to the web page to your mic/camera.
delete caches on chrome devtools/application and reload. the same on ios

also duplicates #463. answer there. thanks

@nicolocarpignoli You missed the point here and this issue should not be closed:
This is about Chrome on iOS. As this doesn't even prompt for permission, there is no way to not give access.

Regard closing this issue, it was a mistake for the closing-reason, but not in general, imho.
In general, I think this kind of issues are not, in any way, related to AR.js.
AR.js uses a lot of different libraries and it is web based, so developers will found a lot of problems. This is ok, but I think AR.js issues have to remain a place for AR.js-strictly-related-bugs and proposals or similar, not somewhere where to put all problems about AR.js implementations.

I think that the problem is absolutely not with developers digging on AR.js but rather on this repo that do not have a clear separate place where to discuss such things - well, there is https://gitter.im/AR-js/Lobby, but it is not well known and not well structured.

Anyway, it is better to discuss this on Trello or other place :)

@farhanRIT let us know if the previous post can help you with your problem

iOS does not allow getUserMedia in WKWebView, which all third party browsers (such as Chrome) are forced to use.
There's nothing that we or anyone can do about this. :(
It's 100% up to Apple.

Here is the relevant Open Radar: http://www.openradar.me/33571214
It's been open for almost 2 years now.

For us, this means that on iOS, AR.js will work ONLY in Safari.

Thanks @andreyrd
I think we can close this for now. Not solvable and, more important, not a AR.js issue.

(To be honest it is, as it is not properly documented in README.md - the "Browser Support" section is terrible - which is why https://trello.com/c/3V7ITJGx/14-rework-browser-support-section exists to solve this better)

i have this issue on my Samsung Note 10 with Chrome.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

soundTricker picture soundTricker  路  5Comments

omarojo picture omarojo  路  3Comments

Samsy picture Samsy  路  5Comments

whilemouse picture whilemouse  路  3Comments

filippomarra picture filippomarra  路  5Comments