[TIMOB-26851] Android: "location" event never fires for "ACCURACY_LOW" as of 8.0.0.RC
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-03-04T10:12:37.000+0000 |
Affected Version/s | Release 8.0.0 |
Fix Version/s | Release 8.0.0 |
Components | Android |
Labels | accuracy, android, geolocation, location, regression |
Reporter | Joshua Quick |
Assignee | Gary Mathews |
Created | 2019-02-23T01:24:42.000+0000 |
Updated | 2019-03-04T10:12:37.000+0000 |
Description
*Summary:*
As of Titanium 8.0.0.RC, the In the [^GeocoderTest.js], uncomment 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:* TheTi.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
File | Date | Size |
---|---|---|
GeocoderTest.js | 2019-02-23T01:21:33.000+0000 | 1186 |
master: https://github.com/appcelerator/titanium_mobile/pull/10728 8_0_X: https://github.com/appcelerator/titanium_mobile/pull/10731
Closing ticket, fix verified in SDK Version
8.1.0.v20190301155716
and SDK Version8.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