{ "id": "173731", "key": "TIMOB-27138", "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-11-25T15:26:21.000+0000", "created": "2019-06-06T13:11:40.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "andoid", "media", "parity", "webView" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-11-25T15:26:21.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\nAndroid's {{Ti.UI.WebView}} does not currently support \"capturing\" a photo or video when using one of the below input HTML elements. It will display a photo gallery selection activity window instead.\r\n* {{}}\r\n* {{}}\r\n\r\n*To-Do:*\r\nWhen configuring our {{Intent}} in [TiWebChromeClient.java|https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/ui/src/java/ti/modules/titanium/ui/widget/webview/TiWebChromeClient.java], we need to set it to [MediaStore.ACTION_IMAGE_CAPTURE|https://developer.android.com/reference/android/provider/MediaStore#ACTION_IMAGE_CAPTURE] for photo capture support and [MediaStore.ACTION_VIDEO_CAPTURE|https://developer.android.com/reference/android/provider/MediaStore#ACTION_VIDEO_CAPTURE] for video capture support. We also need to show a CAMERA permission request dialog as well.\r\n\r\n*Note:*\r\nWe can only add support for Android 5.0 and higher.\r\n", "attachment": [ { "id": "67555", "filename": "WebViewCaptureImageTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-09-19T02:49:57.000+0000", "size": 1005, "mimeType": "application/x-javascript" }, { "id": "67556", "filename": "WebViewCaptureVideoTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-09-19T02:49:57.000+0000", "size": 1195, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: Add photo/video capture support to WebView", "creator": { "name": "nipoul", "key": "nipoul", "displayName": "Nikos Poulios", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "nipoul", "key": "nipoul", "displayName": "Nikos Poulios", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Ti 8.0.1, Android", "closedSprints": [ { "id": 1206, "state": "closed", "name": "2020 Sprint 19", "startDate": "2020-09-14T20:01:00.000Z", "endDate": "2020-09-25T20:01:00.000Z", "completeDate": "2020-09-28T15:30:19.875Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "456951", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12105", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-09-19T03:58:58.000+0000", "updated": "2020-09-19T03:58:58.000+0000" }, { "id": "457211", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "FR passed for this part of the PR", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2020-10-08T13:07:35.000+0000", "updated": "2020-10-08T13:29:06.000+0000" }, { "id": "457726", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*. Fix verified in SDK version {{9.3.0.v20201125050632}}.\r\n\r\nTest and other information can be found at:\r\nhttps://github.com/appcelerator/titanium_mobile/pull/12105", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-11-25T15:25:55.000+0000", "updated": "2020-11-25T15:25:55.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }