{ "id": "174770", "key": "AC-6498", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2020-02-28T09:47:38.000+0000", "labels": [ "applicationDataDirectory", "ios", "webView" ], "versions": [], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-03-30T08:40: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": [], "description": "On iOS device (iOS 12.3.1) the image file is not getting loaded into webview from iPhone/iPAD storage (applicationDataDirectory).", "attachment": [ { "id": "67285", "filename": "app.js", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-02-28T09:46:43.000+0000", "size": 45446, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "iOS : image file not loading into the webview from applicationDataDirectory", "creator": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\nName = Mac OS X\r\nVersion = 10.13.6\r\nArchitecture = 64bit\r\n\r\nCPUs = 4\r\nMemory = 8589934592\r\nNode.js\r\nNode.js Version = 8.9.4\r\nnpm Version = 5.6.0\r\nTitanium CLI\r\nCLI Version = 5.1.1\r\nTitanium SDK\r\nSDK Version = 8.3.1.GA\r\nSDK Path = /Users/infogrid/Library/Application Support/Titanium/mobilesdk/osx/8.3.1.GA\r\nTarget Platform = iphone", "comment": { "comments": [ { "id": "454467", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thanks for the report, looks like a regression issue!\r\n\r\nI tried to reproduce, here are my results (all to iPhone 11 with iOS 13.3):\r\n\r\n- SDK 8.2.1.GA - works as expected\r\n- SDK 8.3.0.GA - image fails loading\r\n- SDK 8.3.1.GA - image fails loading\r\n- SDK 9.0.0.v20200224113949 - image fails loading.", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-02-28T16:02:36.000+0000", "updated": "2020-02-28T16:05:42.000+0000" }, { "id": "454469", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'll check. In 9.0.0 we have new property 'assetsDirectory' . Probably it can help to fix the issue. See TIMOB-27159.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-02-28T18:24:49.000+0000", "updated": "2020-02-28T18:24:49.000+0000" }, { "id": "454471", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~vijaysingh] is correct. In Titanium 8.0.0, we switched out the native iOS implementation from Apple's deprecated {{UIWebView}} to {{WKWebView}}. Apple's {{WKWebView}} has a breaking-change (in an effort to make it more secure) where it needs to be given permission to access files from local storage. You have to give it permission via the new property mentioned above which was introduced into Titanium 9.0.0.\r\n\r\nAlternatively, you can references images within your app's Resources directory instead. This will work in 8.0.0 and above.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-02-28T18:35:15.000+0000", "updated": "2020-02-28T18:35:15.000+0000" }, { "id": "454487", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have e-reading base app which downloads the content (Image , JS , Css) from server and store into applicationDataDirectory. we need to access the content from applicationDataDirectory to present the content on webview\r\n\r\nis it possible to merge assetsDirectory property under 8.0.0 and above SDK?", "updateAuthor": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-02T07:02:25.000+0000", "updated": "2020-03-02T07:03:50.000+0000" }, { "id": "454492", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "body": "attached sample example also not working with SDK 8.2.1.GA -\r\n\r\ntested on iPhone 5s 12.4.4", "updateAuthor": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-02T13:06:25.000+0000", "updated": "2020-03-02T13:06:25.000+0000" }, { "id": "454511", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~jignesh.igp] If it were to be backported it would go to the 8.3.x branch. However, I would not count on that. Can you test with the recommended solution and report back?", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-03-03T15:41:59.000+0000", "updated": "2020-03-03T15:41:59.000+0000" }, { "id": "454529", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Rene Pot,\r\n\r\nyes but app's Resources directory is not use full for our app as it remains static and our app using dynamic content from server.\r\n\r\nthe app is based on ebook reading so it have lots of images, css , js files\r\n\r\nwe are unable to move on latest SDK and release the app because of applicationDataDirectory accessibility issue. \r\n\r\nit will be helpful to merge assetsDirectory property with 8.3.x branch\r\n\r\nthanks.", "updateAuthor": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-04T05:32:29.000+0000", "updated": "2020-03-04T05:35:51.000+0000" }, { "id": "454540", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~jignesh.igp] wouldn't it be easier in that case to load the image from the remote url directly instead of downloading it?", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-03-04T08:50:20.000+0000", "updated": "2020-03-04T08:50:20.000+0000" }, { "id": "454556", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "body": "we are committed to user that our app will functional in offline mode to read the ebook. so we can't use the remote url. it causes the issue for user if device has no network connection", "updateAuthor": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-05T06:09:54.000+0000", "updated": "2020-03-05T06:10:09.000+0000" }, { "id": "454900", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Rene Pot,\r\n\r\ncan you please help me and suggest the solution ?", "updateAuthor": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-28T16:03:40.000+0000", "updated": "2020-03-28T16:03:40.000+0000" }, { "id": "454901", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi, please follow instructions on how to configure this with SDK 9.0.0 (assetDirectory) and use 9.0.0 for your app.", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-03-30T08:40:21.000+0000", "updated": "2020-03-30T08:40:21.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }