{ "id": "169788", "key": "AC-5198", "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": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2017-11-03T20:38:50.000+0000", "created": "2017-09-15T05:19:27.000+0000", "labels": [ "6.2.2", "Android", "baseurl", "webview" ], "versions": [], "issuelinks": [ { "id": "57158", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "173040", "key": "TIMOB-26848", "fields": { "summary": "Android: Re-add \"baseURL\" support to WebView.setHtml() that was removed in 6.0.3", "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": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "57166", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "173047", "key": "TIMOB-26855", "fields": { "summary": "Windows: Add \"baseURL\" support to WebView.setHtml()", "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": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-02-24T13:04:23.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "*+{color:red}baseURL{color}+* property is not working in android application. As a result of it, my application is unable to render/ show styles and images stored at local paths.\r\n\r\n", "attachment": [], "flagged": false, "summary": "baseUrl not working: Android Marshmallow and Oreo ", "creator": { "name": "ios.admin@investis.com", "key": "ios.admin@investis.com", "displayName": "ios.admin@investis.com", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "ios.admin@investis.com", "key": "ios.admin@investis.com", "displayName": "ios.admin@investis.com", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "# Appcelerator Studio: 4.9.0.201705302345\r\n# operating system: macOS Sierra: 10.12.5\r\n# Android installed API and SDK tools: Android 8.0.0 (API 26)\r\n# Titanium SDK : 6.1.1 & 6.2.0", "comment": { "comments": [ { "id": "427938", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thank you for reporting the two issues! Like for the other one, please provide a reproducible test-case and error-logs first, thank you!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-15T12:01:29.000+0000", "updated": "2017-09-15T12:01:29.000+0000" }, { "id": "427952", "author": { "name": "ios.admin@investis.com", "key": "ios.admin@investis.com", "displayName": "ios.admin@investis.com", "active": true, "timeZone": "Asia/Kolkata" }, "body": "While accessing the Webpage in android webview, all the external resources linked in html page, won't able to load in webview. \r\n\r\nUsed baseUrl with setHTML method as below:\r\n\r\n$.webView.setHtml(htmlContent, {\r\n\t\tbaseURL : path + \"/\"\r\n\t});\r\n\r\nAnd in console it gives following errors:\r\n[ERROR] :AndroidProtocolHandler: Unable to open asset URL: file:///android_asset/jquery.js\r\n[ERROR] : AndroidProtocolHandler: Unable to open asset URL: file:///android_asset/Resources/images/banner.jpg", "updateAuthor": { "name": "ios.admin@investis.com", "key": "ios.admin@investis.com", "displayName": "ios.admin@investis.com", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2017-09-15T18:51:53.000+0000", "updated": "2017-09-15T18:51:53.000+0000" }, { "id": "428158", "author": { "name": "ios.admin@investis.com", "key": "ios.admin@investis.com", "displayName": "ios.admin@investis.com", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Any Update on above?", "updateAuthor": { "name": "ios.admin@investis.com", "key": "ios.admin@investis.com", "displayName": "ios.admin@investis.com", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2017-09-20T13:28:12.000+0000", "updated": "2017-09-20T13:28:12.000+0000" }, { "id": "428159", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The test-case provided won't help to reproduce the issue, you will need to provide a test-case that can be dropped into a project, including your assets. If you can, just upload a test-project and we come back to you asap.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-20T13:40:37.000+0000", "updated": "2017-09-20T13:40:37.000+0000" }, { "id": "429256", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please provide a sample code that can be dropped into a project, including your assets. If you can, just upload a test-project and we come back to you asap. Or else we will be closing this ticket. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-10-18T21:06:23.000+0000", "updated": "2017-10-18T21:06:23.000+0000" }, { "id": "446241", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've confirmed that the {{WebView.setHtml()}} method's 2nd argument is being ignored on Android as of Titanium 6.1.0. This changed happened in the link below. I think there was confusion at the time on whether or not it was an officially documented feature.\r\nhttps://github.com/appcelerator/titanium_mobile/pull/8854\r\n\r\nBut I agree, the \"baseURL\" setting is definitely needed on both Android and iOS. Especially when using an iframe, such as an embedded YouTube video. The below can reproduce this issue.\r\n{code:javascript}\r\nvar htmlText =\r\n\t\t'' +\r\n\t\t'' +\r\n\t\t'\t' +\r\n\t\t'\t\t