-
Notifications
You must be signed in to change notification settings - Fork 946
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] Content 'sticking to' camera on certain devices #275
Comments
@maletiger0404 what do you mean revoke the code? The site at https://hikar.org/265/ is a demo for people to test whether GPS is working correctly on their devices; I do not want to unpublish it because the findings from it could be helpful. |
@maletiger0404 when did it stop working? The test application https://hikar.org/265/ definitely works with that on my device, as I created it after the above release, as do a number of other examples. Since then, no - nothing's changed. |
@maletiger0404 do other web-based applications using the GPS work? In other words applications using the geolocation API? Try and find some examples on the web which make use of the geolocation API and see if they work. What browser are you using? It will be helpful if you can somehow look at the browser console to see if any errors are being reported; I have already explained how to do this in Chrome, I'm guessing Safari will have similar functionality. |
@maletiger0404 also looking at that code, it only gets the GPS position when the page first loads, or when the user touches the screen. Is that intentional? If you use watchPosition() rather than getCurrentPosition() it will continuously update. |
@maletiger0404 some of these questions are getting a bit OT and cluttering up the issue. Can you ask general questions in the discussions? Thanks. |
@maletiger0404 Sorry to have to mention this, but could I ask once again, if you want general support, please use the discussions. There is a possible bug in AR.js leading to this behaviour, but to find out what is causing this, we need to know what devices the bug occurs on. This issue is aimed at gathering this information, and getting ideas from people what might be causing the bug. Please do use the discussions part of the repository if you would like general support. Thanks. |
@maletiger0404 I have to agree totally with @nickw1 about this. So, @nickw1 had a great idea to open this issue and try to understand, with the help of contributors, the problem. This is the best way to do that. This was an "ethical" suggestion about Open Source but now it has become a problem for the management of this issue and the repository itself. So, we are going to do this: we are closing this issue, opening a new one in order to understand this problem and collect users feedbacks. https://github.com/AR-js-org/AR.js/discussions You have plenty of correct options to use instead of your current behaving. If you will start again this kind of requests as off topics, I will block or hide your comments. @nickw1 please re-open this issue if you don't bother. |
Reopened as #278. |
Hi Three devices are:
And I am in Shanghai, China. Best. |
Hi @yedianyang thanks for your report. Could you re-post it in issue #278? This issue has been closed as it was getting cluttered. I don't think it's to do with your location in China. It's likely to be dependent on your devices, so many thanks for reporting your device details - that will help diagnose the problem. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
This issue is to discuss the behaviour originally documented in issue #265, and possibly elsewhere.
Namely, on some devices, location-based content specified with
gps-entity-place
appears to 'stick' to the camera even if you move around.If the current behavior is a bug, please provide the steps to reproduce.
Try going to this URL: (265 was the original issue number)
https://hikar.org/265/
What this is supposed to do, is automatically create two boxes a short distance to your north as soon as it gets a GPS position (wherever in the world you are)
If you walk away from your original position in directions other than north, the boxes should get smaller, but if you walk north, they should get bigger.
On some devices, this behaviour is not seen and instead the two boxes 'stick' to the camera.
As an initial step to try and diagnose the problem, could you report:
if the expected behaviour is not occurring.
What would be also good is if you could (if using Chrome on the mobile device) setup Chrome Developer Tools and see if any errors are reported:
https://developer.chrome.com/docs/devtools/remote-debugging/
@nicolocarpignoli any ideas? I think people have reported this issue before, the issue of @EchoDeltaMoon was similar.
Thanks.
The text was updated successfully, but these errors were encountered: