Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13241

Potential issue with geolocation when device is set to GPS only

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      Pinging filmaj who asked to be assigned this.

      My app uses the Geolocation getCurrentPosition() function on both IOS and Android. I have had an estimated 1.6k Android users unable to get a location with a timeout error code 3. There are no problems on IOS.

      I first try to get location with the following settings:

      this.geolocationOptionsFirst =

      { enableHighAccuracy: true, maximumAge: 300000, timeout: 10000 }

      if that fails I then try again with the following settings:

      this.geolocationOptionsSecond =

      { enableHighAccuracy: false, maximumAge: 300000, timeout: 6000 }

      The app is failing with a timeout after 16 seconds in total. My testing has made me believe it's something to do with setting phone location settings to GPS only. Please see environment for affected devices.

      Happy to provide more information if needed. I am available on the cordova-android Slack channel as frontendphil.

      Attachments

        Activity

          People

            bowserj Joey Robert Bowser
            frontendphil Phil Lennon
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: