Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26851

Android: "location" event never fires for "ACCURACY_LOW" as of 8.0.0.RC

    Details

      Description

      Summary:
      As of Titanium 8.0.0.RC, the Ti.Geolocation event "location" will never fire if "accuracy" is set to Ti.Geolocation.ACCURACY_HIGH, which is the default accuracy setting.

      Steps to reproduce:

      1. Build and run GeocoderTest.js on Android.
      2. When a dialog asks for permission, tap the "Allow" button.
      3. Wait for location data.
      4. Notice that location data is never received.
      5. In the GeocoderTest.js, uncomment the ACCURACY_HIGH line.
      6. Rebuild and run on Android.
      7. Notice that location data is now being received and shown onscreen.

      Note:
      The Ti.Geolocation "accuracy" property defaults to ACCURACY_LOW, which means location data will never be received by default.

      Work-Around:
      The "location" event will fire if accuracy is set to high.

      Ti.Geolocation.accuracy = Ti.Geolocation.ACCURACY_HIGH
      

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Joshua Quick
              Tester:
              Samir Mohammed
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-21055
                  Sync status:
                  PENDING
                  Last received:
                  Last sent:

                  Git Source Code