Skip to content
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

Closed
nickw1 opened this issue May 15, 2021 · 20 comments
Closed

[location-based] Content 'sticking to' camera on certain devices #275

nickw1 opened this issue May 15, 2021 · 20 comments

Comments

@nickw1
Copy link
Collaborator

nickw1 commented May 15, 2021

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:

  • Phone model
  • OS and version
  • Browser and version
  • Approximate location (at country level)

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.

@nickw1
Copy link
Collaborator Author

nickw1 commented May 18, 2021

@maletiger0404 what do you mean revoke the code?
AFAIK I didn't change anything to stop this working.

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.

@nickw1
Copy link
Collaborator Author

nickw1 commented May 19, 2021

@maletiger0404 when did it stop working?
Version 3.3.3 was released 11 days ago, on the 8th.

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.

@nickw1
Copy link
Collaborator Author

nickw1 commented May 19, 2021

@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.

@nickw1
Copy link
Collaborator Author

nickw1 commented May 19, 2021

@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.

@nickw1
Copy link
Collaborator Author

nickw1 commented May 19, 2021

@maletiger0404 some of these questions are getting a bit OT and cluttering up the issue. Can you ask general questions in the discussions? Thanks.

@nickw1
Copy link
Collaborator Author

nickw1 commented May 20, 2021

@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.

@nicolocarpignoli
Copy link
Member

@maletiger0404

I have to agree totally with @nickw1 about this.
There is probably a bug on AR.js showing this problem for some devices. It is not easy for us to understand this, because on most devices, AR.js location based works ok.

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.
Your behaviour, on this issue, is blocking the discussion.
I have told this you already in another issue: the solution is not to post messages everywhere and tag us constantly. If you need to solve this urgently, either you pay someone or you do it by yourself.

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.
About your requests, I suggest you use the Discussion, ask a question on Stackoverflow or write on Gitter chat. You have plenty of options for debugging and this kind of help requests.

https://github.com/AR-js-org/AR.js/discussions
https://stackoverflow.com/
https://gitter.im/AR-js/Lobby

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.
I hope I do not need to come at that as I never had to do, and for sure do not want to start now :)

@nickw1 please re-open this issue if you don't bother.
Cheers.

@nickw1
Copy link
Collaborator Author

nickw1 commented May 22, 2021

Reopened as #278.

@yedianyang
Copy link

Hi
Just want to let you know there might be some problem that this function not working well in China( not sure). I try this on three devices. The dialogue box pops out successfully every time when I refresh the site and got the right GPS reading. But all the box sizes are not changed corrsponding when I walking. It moves at the same time when I move.

Three devices are:

  1. iPhone 12 pro max
    IOS 14.3
    Chrome for IOS 86.0.4240.93 / Firefox Daylight 34.0(4920)

  2. iPhone 6s
    IOS 13.6.1
    Safari

  3. iPad Pro 11 inch 2019 cellular (with GPS)
    ipadOS 14.4
    Chrome for ipadOS 90.0.4430.216 / Firefox Daylight 34.0(4920)

And I am in Shanghai, China.

Best.

@nickw1
Copy link
Collaborator Author

nickw1 commented Jun 2, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@nickw1 @nicolocarpignoli @yedianyang and others