{ "id": "76626", "key": "TIMOB-4474", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-21T00:58:00.000+0000", "created": "2011-06-21T14:36:46.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "andoid", "look1", "webview" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11260", "description": "", "name": "Release 1.6.2", "archived": true, "released": true, "releaseDate": "2011-04-20" } ], "issuelinks": [], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T17:00:41.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": "There is a HD ticket having this problem, where goBack() method doesn't work when local files are referenced in \"url\" property of a WebView, \r\n\r\nhttp://support.appcelerator.com/display/APP-327395\r\n\r\nRepro sequence:\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nwebview = Ti.UI.createWebView({id:'webview',\r\n url:'home.html',\r\n\t\ttop:100,\r\n\t\tcanGoBack:true\r\n });\r\n\t\t\t\t\r\nwin_home.add(webview);\t\t\t\t\r\nwin_home.addEventListener('android:back',function(){ \r\n webview.goBack(); \r\n});\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n\r\nWork around for it:\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nwin1.addEventListener('android:back',function(){\r\n myWebView.url = 'index.html'; //Set file\r\n});\r\n\r\nmyWebView.reload(); //reload WebView\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "attachment": [], "flagged": false, "summary": "WebView goBack() method doesn't work for local files", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "+ **Product**: Mobile \r\n+ **Titanium SDK**: Mobile 1.6.2 \r\n+ **Platform OS**: Android \r\n+ **Platform OS Version**: 2.2", "comment": { "comments": [ { "id": "413713", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T17:00:41.000+0000", "updated": "2017-03-20T17:00:41.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }