-
Notifications
You must be signed in to change notification settings - Fork 907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Location based example not working on Android #538
Comments
There is an error in the documentation for the versions: Location-based AR.js For the A-Frame version:
the latest version of ARjs now needs aframe 1.3.0, I recommend you to place a specific version of the packages to avoid these errors, you can try with the ones below:
|
But the positioning is not available |
@malejogs thanks for that, will update the docs. Sorry for late reply, I have been very busy with work the last few weeks. |
Have now updated the docs, sorry for the delay. They should now use A-Frame 1.3.0. Will close this now but feel free to reopen if you still have problems. |
There is still no clear information to this, got tried the above suggestion but still not working I see Nice got it work somehow, the text is showing now |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
The location based example on the repository main page doesn't work on Android, blank screen. The console errors are reported below.
If the current behavior is a bug, please provide the steps to reproduce.
Copy pasted the code, uploaded on my server and accessed it through chrome on android.
Console errors:
Cannot read properties of undefined (reading 'degToRad') at i._haversineDist (aframe-ar.js:1:1647120) at HTMLElement.<anonymous> (aframe-ar.js:1:1646650) at HTMLElement.<anonymous> (a-node.js:263:16) at i._sendGpsUpdateEvent (aframe-ar.js:1:1645044) at Object.gpsupdate (aframe-ar.js:1:1643347) at g._gpsReceived (aframe-ar.js:1:787585) at aframe-ar.js:1:785950 _haversineDist @ aframe-ar.js:1 (anonymous) @ aframe-ar.js:1 (anonymous) @ a-node.js:263 _sendGpsUpdateEvent @ aframe-ar.js:1 (anonymous) @ aframe-ar.js:1 _gpsReceived @ aframe-ar.js:1 (anonymous) @ aframe-ar.js:1 ar-threex-location-only.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'degToRad') at l.update (ar-threex-location-only.js:1:7033) at i.tick (aframe-ar.js:1:1647739) at HTMLElement.value (a-scene.js:709:34) at HTMLElement.value (a-scene.js:759:36) at bind.js:12:17 at f (three.js:24703:38) at e (three.js:15038:4) update @ ar-threex-location-only.js:1 tick @ aframe-ar.js:1 value @ a-scene.js:709 value @ a-scene.js:759 (anonymous) @ bind.js:12 f @ three.js:24703 e @ three.js:15038 requestAnimationFrame (async) e @ three.js:15040 requestAnimationFrame (async) e @ three.js:15040 requestAnimationFrame (async) e @ three.js:15040 requestAnimationFrame (async) start @ three.js:15051 Qt.setAnimationLoop @ three.js:24717 (anonymous) @ a-scene.js:672 (anonymous) @ a-node.js:263 (anonymous) @ a-node.js:128 Promise.then (async) value @ a-node.js:125 value @ a-entity.js:245 (anonymous) @ a-scene.js:680 setTimeout (async) value @ a-scene.js:679 value @ a-scene.js:155 (anonymous) @ a-scene.js:129 (anonymous) @ a-node.js:263 checkUserCamera @ camera.js:98 (anonymous) @ camera.js:58 (anonymous) @ a-node.js:263 value @ a-entity.js:156 init @ camera.js:28 initComponent @ component.js:320 updateProperties @ component.js:302 module.exports.Component @ component.js:78 i @ component.js:662 value @ a-entity.js:332 value @ a-entity.js:495 value @ a-entity.js:463 (anonymous) @ a-entity.js:249 (anonymous) @ a-node.js:127 Promise.then (async) value @ a-node.js:125 value @ a-entity.js:245 value @ a-entity.js:88 value @ a-register-element.js:160 value @ a-register-element.js:160 m @ document-register-element.js:2 l @ document-register-element.js:2 f @ document-register-element.js:2
The text was updated successfully, but these errors were encountered: