Select to view content in your preferred language

My Location Widget not working on Web App

8045
18
Jump to solution
12-09-2016 01:29 PM
EthanUnzicker1
New Contributor III

I've added the My Location widget to a web app, but it doesn't seem to work at all. I have tried in several browsers on my Mac and on my iPhone, and I have not seen my location indicated at all.

Is there something else I need to do besides just adding the widget to my app?

Link to my app ArcGIS Web Application 

0 Kudos
18 Replies
RobertScheitlin__GISP
MVP Emeritus

There is no other setting to be changed as long as your approve your browser to share your location.

0 Kudos
GabrieleGARNERO1
New Contributor II

Sorry, in my application the localization does not work.

Even after you put HTTPS, the My location button does not activate.

My app can be found at the following address

https://poli.maps.arcgis.com/apps/webappviewer/index.html?id=80ed408de34242e68abe307e1710f128

 

 

Thank in advance

 

Gabriele

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Gabriele,

   Hmm.. Your site worked fine for me when I clicked on the locate button, Chrome asked me permission to use my current location and then the map zoomed to my location when i clicked allow.

0 Kudos
GabrieleGARNERO1
New Contributor II
Let me explain: My site does not work when I use it on a tablet or on a smartphone.
In particular, when I open on the IPhone, both on Safari and Chrome.
And I've already deleted the cache...
I also tried on Android
Thanks
0 Kudos
GabrieleGARNERO1
New Contributor II
Sorry, I've done a lot of tests, but I still can't....
• I tried with a service of the municipality of Milan, and the localization services work (so I would say that my smartphone is OK) - 

https://geoportale.comune.milano.it/MapViewerApplication/Map/App?config=%2FMapViewerApplication%2FMa...

• I tried to reset all the localization services and then to restore them but it still does not work
 I tried to do a test service that only has the background map but it does not work - 

http://poli.maps.arcgis.com/apps/webappviewer/index.html?id=84413906b13e4e60850b75cd580eca25

Is there any setting to put in the site that enables the services?
Is there any other possibility?
Thank
0 Kudos
GabrieleGARNERO1
New Contributor II

PS: if you wont, we can continue on private mail

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Gabriele,

   I see what you mean, I can not get the location button to work on any mobile device. The one thing I do see in the browser console is that you have mixed content in your app meaning that the app is using https protocol but you have layers or other items in your app that are using http protocol. Mixed content can be a big problem.

0 Kudos
GabrieleGARNERO1
New Contributor II

Thanks!

I understood the concept of HTTPS even for the individual levels...
Now correct

Thank you
Gabriele
0 Kudos
LynnBerni
Occasional Contributor II

I was having a similar problem in my web app, on both on my computer and my ipad. Yet others on my team could see the little blue dot just fine.  Turns out, all I needed was to update my privacy settings!!  Location Services on the ipad and Settings>Advanced>Privacy>Location>(manage blocked URLs) in Chrome on the computer.