Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20523] Android: Webview with Hardware Acceleration, software rendering doesn't work.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-04-26T09:30:41.000+0000
Affected Version/sRelease 5.2.0, Release 5.1.2
Fix Version/sRelease 6.0.2
ComponentsAndroid
Labelsn/a
ReporterMotiur Rahman
AssigneeUnknown
Created2016-03-07T18:59:41.000+0000
Updated2018-08-06T17:49:18.000+0000

Description

Issue Description

Webview with Hardware Acceleration within Android doesn't work on specific devices (Motorola Moto G with Android 5 and Galaxy S4 with Android 5, Android Devices HTC, samsung galaxy note 2, Samsung Device SM-J500FN) When put on Software Acceleration, it works. But the Hardware accelerated webview doesn't work on those specific devices.

Test Case

var webview = Titanium.UI.createWebView({
    url : 'http://www.promobutler.be/nl/folders/hubo?fid=64007&embedded=true',
    height : '100%',
    width : '100%',
    borderRadius:1
});

var window = Titanium.UI.createWindow();
window.add(webview);
window.open();
<android
    xmlns:android="http://schemas.android.com/apk/res/android">
        <manifest android:installLocation="preferExternal" >
         
            <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="23"/>

        </manifest>
    </android>

Additional Info

-Tried in Native Android with a Native Webview with Hardware Acc, on those devices, it worked:
WebView webView = (WebView)findViewById(R.id.webview); 
webView.getSettings().setJavaScriptEnabled(true); 
webView.setWebChromeClient(new WebChromeClient());// opens links inside same chrome webview 
webView.setWebViewClient(new WebViewClient()); // opens links inside same webview 
webView.loadUrl("http://www.promobutler.be/nl/folders/hubo?fid=64007&embedded=true"); 

Comments

  1. Nazmus Salahin 2016-03-09

    I have experienced a different type of phenomena regarding this issue. The webview works just fine with both "Hardware Acceleration" enabled and disabled if the url is "https://www.google.com/" . But if the url is the given url "http://www.promobutler.be/nl/folders/hubo?fid=64007&embedded=true" then the webview fails to load the page with both "Hardware Acceleration" enabled and disabled . *Environment*: *Device info:* Nexux7 (android 6.0.1) *Node.js Version:* 0.12.7 *npm Version:* 2.11.3 *Titanium SDKs:* 5.2.0 and 5.1.2.GA *Java Development Kit Version:* 1.8.0_73 *Titanium CLI Version:* 5.0.5
  2. Michael Gangolf 2016-07-19

    Same problem with a local Chart.JS page: <application android:theme="@style/CustomTheme" android:hardwareAccelerated="false" android:largeHeap="true"/> -> makes the application slow but the webview shows the content ` -> empty webview Webview has borderRadius:5` in both cases. *Environment:* *Device info:* HTC A9 (android 6.0.1) *Titanium SDKs:* 5.3.1.GA
  3. Gary Mathews 2016-11-08

    This may have been fixed by https://github.com/appcelerator/titanium_mobile/pull/8587
  4. Gary Mathews 2017-04-26

    Resolving. Fixed by TIMOB-23885.
  5. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source