ntzm / osm-address-collector

An easy way to survey addresses for OSM, inspired by Keypad Mapper
https://nat.bike/osm-address-collector
GNU General Public License v3.0
5 stars 0 forks source link

Location in mobile Safari #31

Closed habi closed 1 year ago

habi commented 1 year ago

On an iPhone 12 mini with iOS 16.1 in mobile Safari I cannot get a location lock. I’m using 1Blocker as an ad blocker, but also cannot get a location lock when reloading the page with 'Turn off content blocker’.

Is there a way I can help to debug this?

ntzm commented 1 year ago

Ensure that precise location services are enabled for the browser, I can't remember exactly how to do this but I can check as my girlfriend has an iPhone.

habi commented 1 year ago

Location access is allowed for all sites. image

ntzm commented 1 year ago

Do you get a popup saying any of the following when trying to get the location:

?

habi commented 1 year ago

Do you get a popup [...]

No, not at all!

ntzm commented 1 year ago

Ok, thanks that's helpful :)

ntzm commented 1 year ago

Will take a look at this next week when I have some free time

cpmsmith commented 1 year ago

Checked the console on my own phone: looks like it's not considering touchstart to be a user gesture? If the onClick function was just using click events I suspect it might work.

image
ntzm commented 1 year ago

Ah, thanks for doing the investigation @cpmsmith. Sorry for my slowness on this, will fix this later today

ntzm commented 1 year ago

Please check that it works properly now, thanks for reporting @habi and the investigation @cpmsmith

habi commented 1 year ago

All good now, thanks for fixing! image