Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28119] Android: Add Ti.Geolocation.locationAccuracyAuthorization support

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, geolocation, parity, permission
ReporterJoshua Quick
AssigneeJoshua Quick
Created2020-09-10T05:07:31.000+0000
Updated2021-02-22T19:00:56.000+0000

Description

*Summary:* As of Titanium 9.2.0, we added a new [Ti.Geolocation.locationAccuracyAuthorization](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation-property-locationAccuracyAuthorization) property which is only supported on iOS. We should add support in tandem with [TIMOB-28118]. *To-Do:* When reading this property, we should check if the "android.permission.ACCESS_FINE_LOCATION" permission has been granted. If it has, then we should return [ACCURACY_AUTHORIZATION_FULL](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation-property-ACCURACY_AUTHORIZATION_FULL). If not, then we should return [ACCURACY_AUTHORIZATION_REDUCED](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation-property-ACCURACY_AUTHORIZATION_REDUCED). *Note:* On iOS 14, the end-user can enable/disable "precise" location support when prompted for permission. Enabling it is the equivalent to Android's "android.permission.ACCESS_FINE_LOCATION" permission. However, on Android the end-user cannot disable individual FINE/COURSE location permissions. So, there is no equivalent of this iOS 14 feature on Android... at least for the moment. The only way COURSE can be granted and not FINE is if it's not defined in the "AndroidManifest.xml" file.

Comments

No comments

JSON Source