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

Android: Add Ti.Geolocation.locationAccuracyAuthorization support

    Details

      Description

      Summary:
      As of Titanium 9.2.0, we added a new Ti.Geolocation.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. If not, then we should return 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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                jquick Joshua Quick
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration