{ "id": "118674", "key": "TIMOB-14897", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-08-26T17:24:45.000+0000", "created": "2013-08-16T18:18:22.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "ios" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [ { "id": "31315", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "119033", "key": "TIDOC-1243", "fields": { "summary": "WebView reload method only clears local history", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T17:50:58.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": "According to our docs the reload method clears the browser history but this is not working on Android nor iOS\r\nhttp://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.WebView-method-reload\r\n\r\nSample app:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\theight: Ti.UI.FILL,\r\n\twidth: Ti.UI.FILL,\r\n\tbackgroundColor: \"#FFF\",\r\n\texitOnClose: true,\r\n\tfullscreen: false,\r\n\ttitle: 'WebView Test'\r\n});\r\n\r\nvar webView = Ti.UI.createWebView({\r\n top: 160,\r\n\tleft: 0,\r\n\tright: 0,\r\n\tbottom: 0,\r\n\turl: 'http://www.google.com'\r\n});\r\n\r\nwebView.addEventListener('load', function(_evt){\r\n console.log('Load triggered');\r\n});\r\nwebView.addEventListener('beforeload', function(_evt){\r\n console.log('beforeload triggered');\r\n});\r\nwebView.addEventListener('error', function(_evt){\r\n console.log('error triggered');\r\n});\r\n\r\nvar button1 = Ti.UI.createButton({\r\n title: 'Back',\r\n\twidth: 100,\r\n\theight: 50,\r\n\ttop: 20,\r\n\tleft: 10\r\n});\r\n\r\nvar button2 = Ti.UI.createButton({\r\n title: 'Forward',\r\n width: 100,\r\n height: 50,\r\n top: 20,\r\n right: 10\r\n});\r\n\r\nvar button3 = Ti.UI.createButton({\r\n title: 'Reload',\r\n width: 100,\r\n height: 50,\r\n top: 90,\r\n left: 10\r\n});\r\n\r\nvar button4 = Ti.UI.createButton({\r\n title: 'Change URL',\r\n width: 100,\r\n height: 50,\r\n top: 90,\r\n right: 10\r\n});\r\n\r\nbutton1.addEventListener('singletap', function(_evt){\r\n console.log('------------- back');\r\n if (webView.canGoBack()){\r\n webView.goBack();\r\n }else{\r\n console.log('WebView can\\'t go back');\r\n }\r\n});\r\n\r\nbutton2.addEventListener('singletap', function(_evt){\r\n console.log('------------- url = tap');\r\n if (webView.canGoForward()){\r\n webView.goForward();\r\n }else{\r\n console.log('WebView can\\'t go forward');\r\n }\r\n});\r\n\r\nbutton3.addEventListener('singletap', function(_evt){\r\n console.log('------------- reload');\r\n webView.reload();\r\n});\r\n\r\nbutton4.addEventListener('singletap', function(_evt){\r\n webView.url = \"http://appcelerator.com\";\r\n});\r\n\r\nwin.add(button1);\r\nwin.add(button2);\r\nwin.add(button3);\r\nwin.add(button4);\r\nwin.add(webView);\r\nwin.open();\r\n\r\n{code}\r\n\r\nSteps:\r\n1. Run the app.\r\n2. Tap change url (You will be redirect to appcelerator.com)\r\n3. Tap reload\r\n4. Tap back", "attachment": [], "flagged": false, "summary": "Android: WebView reload method doesn't clear browser history", "creator": { "name": "ccavazos", "key": "ccavazos", "displayName": "César Cavazos", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ccavazos", "key": "ccavazos", "displayName": "César Cavazos", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio: 3.1.3.201308152046\r\nTi SDK: 3.1.1.GA and 3.1.2.GA\r\nacs: 1.0.6\r\nalloy: 1.2.0\r\nnpm: 1.3.2\r\ntitanium: 3.1.2\r\ntitanium-code-processor: 1.0.2\r\nXcode: 4.6.2\r\nOS: Mac 10.8.4\r\nDevice: Android Galaxy Nexus 4.2.1 and iOS Simulator 6.1", "comment": { "comments": [ { "id": "268143", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "On iOS, we can't fix this as the workaround is likely to result in app rejection from the App Store. Moving to mark this as \"won't fix\" and create a separate documentation bug to clarify the documentation issues involved.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-26T17:24:45.000+0000", "updated": "2013-08-26T17:24:45.000+0000" }, { "id": "414812", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix and with reference to the above comments. ", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T17:50:58.000+0000", "updated": "2017-03-22T17:50:58.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }