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

Android: Add Ti.Media.requestPhotoGalleryPermissions() support

    Details

    • Story Points:
      5

      Description

      Summary:
      We should add the following methods on Android for parity with iOS...

      Functionality:
      On Android 9 and below, these methods should check if the app has WRITE_EXTERNAL_STORAGE permission.

      On Android 10 and above, these methods should always return true since we do not need write permission to save a photo/video to the gallery once TIMOB-28059 has been implemented. Google documents this here...
      https://developer.android.com/training/camera/photobasics#TaskPath

      Note:
      Currently, Titanium app developers must use the Ti.Filesystem.requestStoragePermissions() and Ti.Filesystem.hasStoragePermissions() methods before saving to the gallery. This is okay, but we don't need to check for WRITE_EXTERNAL_STORAGE permission on Android 10 and above when saving to the gallery. We also don't want to change the Ti.Filesystem.requestStoragePermissions() method's implementation since it's still needed in case you want to write to other locations on external storage.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                jquick Joshua Quick
                Reviewer:
                Gary Mathews
                Tester:
                Sohail Saddique
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration