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

Android: Add Ti.Geolocation.requestTemporaryFullAccuracyAuthorization() support

    Details

      Description

      Summary:
      As of Titanium 9.2.0, we added the requestTemporaryFullAccuracyAuthorization() method for iOS 14 which was intended to request the end-user for permission to use the GPS in case access has expired or was disabled. We should add this method to Android for parity to make it easier to write cross-platform code.

      To-Do:
      On Android, the Ti.Geolocation.requestTemporaryFullAccuracyAuthorization() method should just call the native Ti.Geolocation.requestLocationPermissions() method, which requests the end-user for the "android.permission.ACCESS_FINE_LOCATION" permission. This is the closest equivalent on Android.

      Note:
      On Android, the "android.permission.ACCESS_FINE_LOCATION" and "android.permission.ACCESS_COARSE_LOCATION" permissions are always granted together. The end-user is unable to deny the FINE permission and keep the COARSE permission afterwards. They can only be both denied together afterwards. So, this isn't something we have to worry about on this platform.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                jquick Joshua Quick
              • Watchers:
                2 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