[TIMOB-28119] Android: Add Ti.Geolocation.locationAccuracyAuthorization support
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, geolocation, parity, permission |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2020-09-10T05:07:31.000+0000 |
Updated | 2021-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.
No comments