I recently upgraded my iPad to iOS 10 and noticed the "My Location" button is not working on my WAB app.
Other people experiencing the same issue?
Thanks,
Maria
Maria,
I am seeing the same.
From a conversation I had with Esri a few days ago about this issue....
Safari and Chrome now require websites be accessed over https to be able to request a user's location. This has been the case for a little while with Chrome, but is new to Safari. We have this documented for Chrome, but not Safari: https://developers.arcgis.com/javascript/3/jsapi/locatebutton-amd.html That said, a notification should show to alert the user of this restriction. Please confirm that the locator widget works on your mobile browsers over https. You can use the following web app, in case you do not have SSL enabled on your server: http://arcg.is/2crOHOA.
I contacted ESRI and this issue will be logged as a bug soon.
Here is the BUG - https://my.esri.com/#/support/bugs/BUG-000099505
Bug link is getting an error right now. May be issues with site, but it may be locked to your customer number. You may want to include a clip of the but description in this thread.
https works for chrome but the location widget still doesn't work on iOS 10 for me.
On your device with iOS 10, are you using Chrome or Safari? Make sure you enable location services under Settings > Privacy > Location Services > Chrome/Safari (Set to While Using).
I can confirm on iOS 10.0.1 the location widget works on both Chrome and Safari.
Daniel,
Is your WAB app using https protocol?
Update from Esri Support
BUG-000099505: In some browsers, the LocateButton widget does not disappear or gets disabled when a JavaScript application is loaded over HTTP.
However, development has closed this bug as this is not technically an Esri issue. Here is their public explanation: "
This is a browser specific behavior. Note on https://blogs.esri.com/esri/arcgis/2016/04/14/increased-web-api-security-in-google-chrome/ it states, "...some of the HTML5 web APIs require websites to be using a secure origin like HTTPS to work correctly." Therefore, I would look at some of the solutions outlined in the blog and depending on where your data is hosted, adjusting the security parameters.
It seems that this problem has remained unresolved, for the most part. My web mapping applications are set to https and I am able to geolocate on desktop, but I am unable to geolocate on mobile devices. I have verified that I have the correct setting for location services on all mobile browsers. I have a few public facing applications that are useless without a geolocation feature. Has anyone else found a solution to this problem?
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.