We are experiencing an issue in our ArcGIS web apps that use the ArcGIS API for JavaScript's Geolocation Widget (esri/dijit/LocateButton) on iOS devices that cause the webpage to crash and force a page refresh with the following error returned (in Safari): "A problem occurred with the webpage causing it to reload."
To reproduce the error, simply use the Locate Button, after it zooms in your location, zooming out and/or panning will cause the error. At first we thought it was our apps only, but you can test with Esri's sample here: http://developers.arcgis.com/javascript/samples/widget_locate/
I am planning to submit this as a bug to Esri, but would like to confirm with the larger community that this is indeed what others are experiencing as well. Can anyone else confirm this behavior with the Geolocation Widget on their iOS devices?
- This error is generated only when using the ArcGIS JavaScript API's Locate Button dijit (aka Geolocation Widget) in any web app/webmap in a browser on iOS.
- Affects any browser on iOS, tested Chrome and Safari
- Affects iOS 8.x and 9.x
- Tested iPhone 5c/5/6s/6, iPad Air 2
- Since it is the esri/dijit/LocateButton in the ArcGIS JavaScript API, all web maps and web apps using this dijit are affected (web app builder and/or ArcGIS JavaScript API's that call on the dijit).
- If the web app implements geolocation without using the widget, the error does not occur. Eg. These samples from Esri do not fail -
- These forum posts on Apple's website seem to indicate a long held problem on iOS when users try to access certain sites (seems to effect some sites and not others.
My guess is that the way Esri's dijit/LocateButton module was written falls into the category of sites/scripts that are affected by this iOS bug, and that Esri may need to update their code in order to resolve or workaround the iOS issue. Curious to hear back!