[TIMOB-24616] [Android] Local html not rendered in webview
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2019-08-01T20:39:14.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | webView |
Reporter | Ángel Flores |
Assignee | Unknown |
Created | 2017-04-17T10:01:07.000+0000 |
Updated | 2019-08-01T20:39:14.000+0000 |
Description
I try to open a webview setting html in the webview.html property.
Results:
[Appcelerator Studio]
Empty screen with correct height size.
I have tried android:hardwareAccelerated both true and false (in the Samsung Young 2 the trace is the same)
[Play Store]
It works.
Attachments
File | Date | Size |
---|---|---|
P8-Lite-hardware acceleration disabled.log | 2017-04-17T09:11:19.000+0000 | 7892 |
P8-Lite-hardware acceleration enabled.log | 2017-04-17T09:11:19.000+0000 | 7894 |
Samsung Young 2.log | 2017-04-17T09:12:39.000+0000 | 1507 |
Screenshot_20170421-034515.png | 2017-04-20T21:47:46.000+0000 | 72135 |
testCode.js | 2017-04-20T13:23:30.000+0000 | 16413 |
Hello, Please share a sample code. Thanks.
Because it is possible that the error depends on the performance of the device, I have prepared a sample text with 20 paragraphs, and each time the window is opened it shows a random number of them (by default the maximum is 5). Opening and closing the screen, it is possible to find the error quickly. For example, a Huawei P8 Lite can show the webview loaded with 2 paragraphs but not with 3.
Hello, I can verify the issue with a little change and got the bellow error in SDK 6.0.3.GA
I use var osname = Ti.Platform.osname; and for OS_ANDROID i used (osname=='android'). See the screenshot. Thanks.
Hello, in your case the error is due not to have the folder 'cache'. Sorry, I did not realize that the creation of the folder is performed by my alloy.js neither that the checking about whether the article has an iframe or not is not strictly necessary for this test (I also checked the wrong variable so due to the 'css' block, there was always an iframe) Please, use this new version of the test code.