mapbox / mapbox-gl-geocoder

Geocoder control for mapbox-gl-js using Mapbox Geocoding API
https://mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder/
ISC License
364 stars 180 forks source link

Error on mobile safari #339

Open jasoncoding opened 4 years ago

jasoncoding commented 4 years ago

Hello!

I am seeing some odd behavior in Safari on iOS 12.

I am unable to touch autocomplete suggestions from the geocoder. When I touch a result, the keyboard closes and nothing happens. If I try the example at https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder/ all I get is a "There was an error reaching the server"

tristen commented 4 years ago

Hmm I think this is related to https://github.com/mapbox/mapbox-gl-geocoder/issues/271

jasoncoding commented 4 years ago

@tristen I'm sure you're correct about 271 and the error reaching server. However regarding my issue with iOS Safari, any insights? My problem is the same as others have had: #49, #55 . The workaround in #55 has an edge case that has brought me back to solving the original problem.

This works on literally every platform except iOS safari. Any suggestions appreciated!

tristen commented 4 years ago

@jasoncoding is there an online example you could point me to where selecting an autocomplete suggestion fails to do something? And out of curiosity, are you reproducing the same behaviour here? http://tristen.ca/suggestions/demo/

jasoncoding commented 4 years ago

@tristen I tested each example on that page in iOS safari and they all worked great. It's clearly something I'm doing but I don't know what since it works everywhere else. If you can share your email or a way to send you privately I'd like to share our qa site.

Andrew67 commented 4 years ago

If anyone else ends up on this page like me after having this issue on iOS as a homescreen webapp and are using a UI framework and/or the FastClick library: see my reply here https://github.com/mapbox/mapbox-gl-geocoder/issues/49#issuecomment-619263907