{ "id": "172899", "key": "TIMOB-26757", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2019-01-21T09:37:06.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-01-23T17:09:21.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "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.", "attachment": [], "flagged": false, "summary": "Android: Add parity for \"hasPhotoGalleryPermissions\" and \"requestPhotoGalleryPermissions\"", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "445540", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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.\r\n\r\nYou only need permission to *add* images to the gallery, which is something the camera APIs already effectively offer.\r\n\r\nAlthough, for the sake of parity, I suppose we could hardcode these methods to return true. I suppose that's what you're after, right?", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-23T03:21:37.000+0000", "updated": "2019-01-23T03:21:37.000+0000" }, { "id": "445567", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "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.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-01-23T17:09:21.000+0000", "updated": "2019-01-23T17:09:21.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }