Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26851] Android: "location" event never fires for "ACCURACY_LOW" as of 8.0.0.RC

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2019-03-04T10:12:37.000+0000
Affected Version/sRelease 8.0.0
Fix Version/sRelease 8.0.0
ComponentsAndroid
Labelsaccuracy, android, geolocation, location, regression
ReporterJoshua Quick
AssigneeGary Mathews
Created2019-02-23T01:24:42.000+0000
Updated2019-03-04T10:12:37.000+0000

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:*

Build and run [^GeocoderTest.js] on Android.

When a dialog asks for permission, tap the "Allow" button.

Wait for location data.

Notice that location data is never received.

In the [^GeocoderTest.js], uncomment the ACCURACY_HIGH line.

Rebuild and run on Android.

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

FileDateSize
GeocoderTest.js2019-02-23T01:21:33.000+00001186

Comments

  1. Gary Mathews 2019-02-27

    master: https://github.com/appcelerator/titanium_mobile/pull/10728 8_0_X: https://github.com/appcelerator/titanium_mobile/pull/10731
  2. Samir Mohammed 2019-03-04

    Closing ticket, fix verified in SDK Version 8.1.0.v20190301155716 and SDK Version 8.0.0.v20190301145350. Test and other information can be found at: master: https://github.com/appcelerator/titanium_mobile/pull/10728 8_0_X: https://github.com/appcelerator/titanium_mobile/pull/10731

JSON Source