{ "id": "171158", "key": "MOD-2398", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2018-02-22T15:16:48.000+0000", "created": "2018-02-22T13:23:10.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-08-06T17:52:08.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": [], "description": "When viewing a website in Ti.WKWebView, load any page with an image on it. You should be able to longpress on the image, and from the popup menu choose \"Save Image\" and it should save to the Camera Roll on the device. \r\n\r\nHowever it just crashes the app.\r\n\r\nFor example load this url from the Appcelerator Blog into a Ti.WKWebView:\r\nhttps://www.appcelerator.com/blog/2018/02/building-titanium-apps-for-homepod/\r\n\r\nLongpress on the \"Tech Tip\" image, and select \"Save Image\". The app will crash. The trace logs do not provide any clues.\r\n\r\nHere is some basic sample code:\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\nvar wkWebView = require('ti.wkwebview');\r\nvar webView = wkWebView.createWebView({\r\n\turl: 'https://www.appcelerator.com/blog/2018/02/building-titanium-apps-for-homepod/'\r\n});\r\nwin.add(webView);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "64886", "filename": "Simulator_Screen_Shot_-_iPhone_8_Plus_-_2018-02-23_at_02_05_02.png", "author": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "created": "2018-02-22T13:21:50.000+0000", "size": 77460, "mimeType": "image/png" } ], "flagged": false, "summary": "Ti.WKWebView crash when selecting \"Save Image\"", "creator": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "subtasks": [], "reporter": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "environment": "Latest module version 2.6.0", "closedSprints": [ { "id": 1000, "state": "closed", "name": "2018 Sprint 04 SDK", "startDate": "2018-02-12T04:23:01.913Z", "endDate": "2018-02-26T04:23:00.000Z", "completeDate": "2018-02-26T19:36:01.769Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "434772", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Saving photos inside WKWebView require the {{NSPhotoLibraryAddUsageDescription}} key in your tiapp.xml. I've [updated the docs|https://github.com/appcelerator-modules/Ti.WKWebView/blob/master/README.md#saving-images] to reflect that!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-22T15:16:23.000+0000", "updated": "2018-02-22T15:19:05.000+0000" }, { "id": "434788", "author": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "body": "Too easy! Thanks so much.", "updateAuthor": { "name": "mdelmarter", "key": "mdelmarter", "displayName": "Matthew Delmarter", "active": true, "timeZone": "Pacific/Auckland" }, "created": "2018-02-22T20:02:41.000+0000", "updated": "2018-02-22T20:02:41.000+0000" }, { "id": "440288", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as \"not our bug\". If you disagree, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:52:08.000+0000", "updated": "2018-08-06T17:52:08.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }