{ "id": "175630", "key": "TIMOB-28183", "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": [ { "id": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-10-22T22:22:28.000+0000", "created": "2020-10-09T03:03:48.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "media", "parity", "permission", "photo", "photogallery" ], "versions": [], "issuelinks": [ { "id": "58819", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "175385", "key": "TIMOB-28059", "fields": { "summary": "Android: Modify Ti.Media APIs to use scoped storage", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "58818", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "171905", "key": "TIMOB-26198", "fields": { "summary": "Android: Parity of Ti.Media APIs is very low", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-10-22T22:22:28.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Summary:*\r\nWe should add the following methods on Android for parity with iOS...\r\n* [Ti.Media.requestPhotoGalleryPermissions()|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Media-method-requestPhotoGalleryPermissions]\r\n* [Ti.Media.hasPhotoGalleryPermissions()|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Media-method-hasPhotoGalleryPermissions]\r\n\r\n*Functionality:*\r\nOn Android 9 and below, these methods should check if the app has {{WRITE_EXTERNAL_STORAGE}} permission.\r\n\r\nOn 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...\r\nhttps://developer.android.com/training/camera/photobasics#TaskPath\r\n\r\n*Note:*\r\nCurrently, Titanium app developers must use the [Ti.Filesystem.requestStoragePermissions()|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Filesystem-method-requestStoragePermissions] and [Ti.Filesystem.hasStoragePermissions()|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Filesystem-method-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()|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Filesystem-method-requestStoragePermissions] method's implementation since it's still needed in case you want to write to other locations on external storage.\r\n", "attachment": [], "flagged": false, "summary": "Android: Add Ti.Media.requestPhotoGalleryPermissions() support", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "457233", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12143\r\n\r\nSee commits...\r\nhttps://github.com/appcelerator/titanium_mobile/pull/12143/commits/b8e5f150b012ac81b4ac6543f5845a09707d9d29\r\nhttps://github.com/appcelerator/titanium_mobile/pull/12143/commits/5d0a7b42d36f1479353c7ab1eaf79d90a958a8ae", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-10T04:33:37.000+0000", "updated": "2020-10-10T04:34:31.000+0000" }, { "id": "457314", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 9.3.0.v20201022111908.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-22T22:19:59.000+0000", "updated": "2020-10-22T22:19:59.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }