AR.js
AR.js copied to clipboard
Location Based with Safari needs location access setting
Do you want to request a feature or report a bug? feature
What is the current behavior? I tried to use location based AR on my iPhone, but it didn't work. AR content was not displayed at all, or sometimes attached to the ground. I checked issues, and found some people had similar problems. (#417 #278) First, I thought it was bug that AR.js do not work on iPhone. But Chorme browser in iPhone, I found it works well. So I thought it was not problem with iPhone itself, but the Safari browser.
And finally, I could make it work well on Safari! The cause of problem was had to set permission to Safari to use location information. So, Settings>Privacy>Location Services>Scroll down and find Safari app > select ALLOW LOCATION ACCESS Ask Next Time or While Using the App, and it started working. (ref : https://support.apple.com/en-us/HT207092)
Maybe I think in Chrome, can set permission immediately with alert, but it doesn't seem to work in Safari.
I've had a hard time with this problem quite a while, and other developers also seem to have problems in iOS env, so how about add this to the document?
If the current behavior is a bug, please provide the steps to reproduce.
Please mention other relevant information such as the browser version, Operating System and Device Name My device is iPhone11 with 15.7 version
What is the expected behavior?
If this is a feature request, what is motivation or use case for changing the behavior? By adding this to the document(like READEME.md), can help developers with similar problems.