{ "id": "163322", "key": "TIMOB-23968", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-09-29T17:14:43.000+0000", "created": "2016-09-20T09:05:22.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": "2016-10-19T02:46:05.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": "Our app shows 3D tours of flats/houses.\r\n\r\nNext example is working fine on 5.3.0, but something was broken in 5.4.0 version of SDK, I don't understand what exactly! I don't see in release notes some specific stuff related to webview component. Please, shed some light on this issue. Any help/advice appreciated. \r\n\r\n*index.js:*\r\n\r\n{code:javascript}\r\nvar webview = Ti.UI.createWebView({\r\n\turl: \"https://360-sandbox.immoviewer.com/tour/show/1029649?accessKey=5712\"\t\r\n});\r\n\r\nvar webviewfragment = require('de.marcelpociot.webviewfragment');\t\r\nvar webViewHolder = webviewfragment.createWebview({\r\n\twidth: Ti.UI.FILL,\r\n\theight: Ti.UI.FILL,\r\n\tcenterWindow: webview\r\n});\t\r\n\r\n$.win.add(webViewHolder);\r\n\r\n$.win.open();\r\n{code}\r\n\r\n\r\nP.S. I'm using this module: https://github.com/mpociot/TiWebviewFragment\r\nBecause of webview doesn't work correctly by default.\r\n\r\nP.P.S. issue: since 5.4.0 webview loads fine, but I don't see panorama (only gray screen)", "attachment": [], "flagged": false, "summary": "Android: problems in webview since 5.4.0", "creator": { "name": "zozo4kin", "key": "zozo4kin", "displayName": "Zakhar Zhuravlev", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "zozo4kin", "key": "zozo4kin", "displayName": "Zakhar Zhuravlev", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 722, "state": "closed", "name": "2016 Sprint 20 SDK", "startDate": "2016-09-28T16:50:17.299Z", "endDate": "2016-10-12T16:50:00.000Z", "completeDate": "2016-10-10T06:17:01.016Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "396862", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, What version of Android device or simulator are you testing on? Give us details of the device model. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-09-21T19:28:44.000+0000", "updated": "2016-09-21T19:28:44.000+0000" }, { "id": "396864", "author": { "name": "zozo4kin", "key": "zozo4kin", "displayName": "Zakhar Zhuravlev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Google Nexus I9250 with android 4.3.\r\nXiaomi Redmi 3s with android 6.", "updateAuthor": { "name": "zozo4kin", "key": "zozo4kin", "displayName": "Zakhar Zhuravlev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-09-21T19:37:43.000+0000", "updated": "2016-09-21T19:37:43.000+0000" }, { "id": "397384", "author": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "body": "I'm not sure if my issue is related but we've noticed the performance of the WebView is really bad (in 5.4.0.GA & 5.5.0.GA). Especially the scrolling is very laggy.\r\n\r\nThe following is enough to reproduce it. Opening the same url in the native browser scrolls fine.\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n title:'WebView pret',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar webView = Ti.UI.createWebView({\r\n\turl:'http://www.nu.nl/',\r\n\twidth:Ti.UI.FILL,\r\n\theight:Ti.UI.FILL\r\n});\r\n\r\nwin.add(webView);\r\nwin.open();\r\n{code}\r\n\r\nTested on a LG G3 (5.0), Samsung S7 Edge (6.0.2), Nexus 5 (5.0.1).\r\n\r\nIt seems like the better the device is, the worse the performance is. We can not go back to an older SDK so we are kind of in trouble at this point as we have to submit 2 apps this week.", "updateAuthor": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-27T15:04:28.000+0000", "updated": "2016-09-27T15:08:27.000+0000" }, { "id": "397385", "author": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "body": "I don't know what happens to my code snippet, it's all indented wrong, here is the code without the formatting:\r\n\r\nvar win = Ti.UI.createWindow({\r\n\ttitle:'WebView pret',\r\n\tbackgroundColor:'#fff'\r\n});\r\n\r\nvar webView = Ti.UI.createWebView({\r\n\turl:'http://www.nu.nl/',\r\n\twidth:Ti.UI.FILL,\r\n\theight:Ti.UI.FILL\r\n});\r\n\r\nwin.add(webView);\r\nwin.open();", "updateAuthor": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-27T15:06:27.000+0000", "updated": "2016-09-27T15:06:27.000+0000" }, { "id": "397404", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I am using SDK 5.5.0.GA. The sample code you have provided I have tested on device running Android 6 and also in simulator. Webview seems to work fine for my test. Also the scrolling workd fine. The device you have mentioned \"Google Nexus I9250 with android 4.3 and\r\nXiaomi Redmi 3s with android 6.\" these devices are not available here. Possibly the issue is worh the device. It would be helpful if you provide a video sample demonstrating the issue. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-09-27T16:28:19.000+0000", "updated": "2016-09-27T16:28:19.000+0000" }, { "id": "397488", "author": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "body": "I made the video, you can see it here: https://youtu.be/1sDVtweBNus\r\nThe video is done with a Samsung Galaxy S7 Edge, the first section is a website in the Google Chrome browser, the next in the Titanium test app built with SDK 5.4.0.GA.\r\n\r\nReduced the test code to:\r\n\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow();\r\nwin.add(Ti.UI.createWebView({url:'http://www.nu.nl/'}));\r\nwin.open();\r\n{code}\r\n\r\n\r\n", "updateAuthor": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-28T08:39:17.000+0000", "updated": "2016-09-28T09:23:35.000+0000" }, { "id": "397493", "author": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "body": "I found that this code was added in SDK 5.4.0.\r\n\r\n{code:java}\r\n// TiUIWebView.java\r\nif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n\twebView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);\r\n}\r\n{code}\r\n\r\nThis was not there in 5.3.0, which works fine. This in the only change in TiUIWebView.java.\r\n\r\nI'm not sure why that is added, didn't they mean <= ?", "updateAuthor": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-28T09:01:48.000+0000", "updated": "2016-09-28T09:23:22.000+0000" }, { "id": "397494", "author": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "body": "See also this commit: https://github.com/appcelerator/titanium_mobile/commit/c2407cdfd53ba4190ceae582d788b658bbc30dd7", "updateAuthor": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-28T09:21:29.000+0000", "updated": "2016-09-28T09:21:29.000+0000" }, { "id": "397507", "author": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "body": "I can confirm removing the {{webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);}} works. I've created a patched version of SDK 5.4.1 which scrolls as expected.", "updateAuthor": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-28T14:07:20.000+0000", "updated": "2016-09-28T14:07:20.000+0000" }, { "id": "397658", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I reverted the commit for now. It was merged to quickly and did not run through the QE-process. Sorry for that! Until we have a better solution to configure the layer-type dynamically, this change should not be included.\r\n\r\nThanks for reporting!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-29T17:14:43.000+0000", "updated": "2016-09-29T17:14:43.000+0000" }, { "id": "397701", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nThe webview scrolls smoothly after the fix.\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.8.0.201609292239\r\nTi SDK : 6.0.0.v20160929101355\r\nTi CLI : 5.0.10\r\nAlloy : 1.9.2\r\nMAC El Capitan : 10.11.6\r\nAppc NPM : 4.2.8-7\r\nAppc CLI : 6.0.0-48\r\nNode: 4.4.4\r\nNexus 5 - Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-09-30T01:17:46.000+0000", "updated": "2016-09-30T01:17:46.000+0000" }, { "id": "399332", "author": { "name": "bearus", "key": "bearus", "displayName": "Be Rushton", "active": true, "timeZone": "Australia/Brisbane" }, "body": "Can we have this back ported to 5.X since 6.0 is still in beta...", "updateAuthor": { "name": "bearus", "key": "bearus", "displayName": "Be Rushton", "active": true, "timeZone": "Australia/Brisbane" }, "created": "2016-10-19T02:46:05.000+0000", "updated": "2016-10-19T02:46:05.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }