New issue
Advanced search Search tips

Issue 721977 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 672301
Owner:
Closed: May 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Location requests keep failing even after enabling Android-level location

Project Member Reported by dandv@google.com, May 13 2017

Issue description

Steps to reproduce the problem:
Screencast at https://youtu.be/AQs-L7P62tA

Reproduction steps:

1. Disable location in Android
2. Leave the Location permission enabled for Chrome, given the scary dialog
3. Clear data for all sites
4. Open https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/Using_geolocation#Live_Result in Firefox
5. Tap the JSFiddle link
6. In the fiddle, tap "Show my location"

What is the expected behavior?
Firefox handles this situation correctly by supplying the location to the navigator.geolocation.getCurrentPosition() call without having to refresh the page.

What went wrong?
Note how after step 6, the navigator.geolocation.getCurrentPosition() request fails ("Unable to retrieve your location"), without any prompt for location permissions from Chrome. This may or may not be WAI but ideally, Chrome would use the new LocationSettingsRequest.Builder API to let the user grant location permission with a single tap - see https://pinboard.in/u:dandv/b:53350f596e93 

7. Enable location at the OS level and verify in Maps
8. Tap "Show my location" again. Chrome will never succeed in supplying the location to the page.

You need to reload the page in order for the location request to succeed (after prompting for permission).

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 58.0.3029.83  Channel: stable
OS Version: 7.1.2 Nexus 5X
Flash Version: 

This issue affects all Book-A-Ride partners implementing rideshare Progressive Web Apps.
 
Owner: benwells@chromium.org
Status: Assigned (was: Unconfirmed)
Mergedinto: 672301
Status: Duplicate (was: Assigned)
This should be enabled in M59, if all goes well.

It currently is implemented in M59, but you'll need to either be in the lucky 50% of users who have it turned on, or to enable it manually via the --lsd-permission-prompts flag.

Note that there is a backoff implemented to prevent the dialog being shown too much, and the site requesting geolocation also needs to have a gesture associated with the request to cause the location settings dialog to be shown.
Components: Blink>Geolocation
Components: -Blink>Location

Sign in to add a comment