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");
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
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.GAThis may have been fixed by https://github.com/appcelerator/titanium_mobile/pull/8587
Resolving. Fixed by TIMOB-23885.
Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.