Esri / nearby-javascript

ArcGIS API for JavaScript app to find places nearby and route to the nearest location.
Apache License 2.0
41 stars 24 forks source link

Prompts twice for location access #29

Open elake2018 opened 4 years ago

elake2018 commented 4 years ago

Maybe the app should not ask me twice for location access? I assume once for the list and once for the map.

odoe commented 4 years ago

Can you provide some more details. I just tested and I'm only prompted once on my device.

elake2018 commented 4 years ago

If I immediately click on the all location access as soon as the page loads (when you see the blue status bar moving from left to right) but before the map initializes, once the map starts to load it will ask me again. If I let it go and wait for the map to load it doesn't prompt me a second time. I thought it did it all the time, but I guess I was too quick to hit the allow button.

Not a big deal really

odoe commented 4 years ago

Is this on a specific device, browser?

elake2018 commented 4 years ago

It does it in FF, harder to replicate in Chrome because it loads faster. I did not use Edge.

odoe commented 4 years ago

Ok, I can see this in FF. I think this is more of a browser issue. Not something we can really work around when it comes to permissions like that. FF should recognize the host domain, but maybe it's looking at the full URL. Tough to tell.