Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26757] Android: Add parity for "hasPhotoGalleryPermissions" and "requestPhotoGalleryPermissions"

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterHans Knöchel
AssigneeUnknown
Created2019-01-21T09:37:06.000+0000
Updated2019-01-23T17:09:21.000+0000

Description

Currently, Android does not offer a way to check and request permissions to access the photo gallery. It seems like it's a similar permission to access the camera, but for the sake of parity and less platform-specific code, it could be added.

Comments

  1. Joshua Quick 2019-01-23

    On Android, you don't need permission to select an image from the gallery. This is because the selected image is returned indirectly via a content provider. I've re-tested this on an Android P device and it's true. You only need permission to *add* images to the gallery, which is something the camera APIs already effectively offer. Although, for the sake of parity, I suppose we could hardcode these methods to return true. I suppose that's what you're after, right?
  2. Hans Knöchel 2019-01-23

    Yep, that's what I thought. If I remember correctly, some kind of API for some other permission returns a hardcoded "true" already, so that concept wouldn't be new. It's really just an effort to minimize the "if-else" cases.

JSON Source