Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23163] Android 6: webView is unable to open google map url and any pdf url

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionNot Our Bug
Resolution Date2018-12-13T06:38:33.000+0000
Affected Version/sRelease 5.2.2
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterJebun Naher
AssigneeUnknown
Created2016-04-07T07:08:48.000+0000
Updated2018-12-13T06:38:33.000+0000

Description

*Problem Description:* When I use google maps url(https://maps.google.com) or any other pdf url(https://www.onguardonline.gov/articles/pdf-0004-mobile-apps.pdf) inside webView, the webView is unable to open those urls. It shows only a blank screen and there is no error in console. This is happening on Android 6.0.1(device: Nexus 7). Other url inside webView works fine. *Environment Info:* Appcelerator CLI: 5.2.2 Node.js Version = 0.12.7 Titanium SDKs = 5.2.2.GA Appcelerator Studio, build = 4.5.0.201602170821 Java Development Kit = 1.7.0_80 android version: 6.0.1 Physical device: Nexus 7 *Steps to reproduced:* 1. Create a classic project with the test case provided. 2. Run the app *Expected:* webView should load google map webpage *Actual:* webView is unable to load google map webpage. The app shows only a blank screen with no error log. *Test Case:*
var win = Ti.UI.createWindow();
var webview = Ti.UI.createWebView({
    //url: 'https://www.onguardonline.gov/articles/pdf-0004-mobile-apps.pdf'
    url: 'https://maps.google.com'
});
win.add(webview);
win.open();
*Intercom link:* https://app.intercom.io/a/apps/k9rdlb68/inbox/shossain@appcelerator.com/conversations/4493448913

Attachments

FileDateSize
log.txt2016-04-07T09:08:53.000+00005515

Comments

  1. Hieu Pham 2016-05-24

    Does this work on a device that is not 6.0? I.e 4.x or 5.x device. If it does, then this is probably due to the new runtime permission introduced on 6.0. I looked at your log.txt, there isn't much useful stuff there, could you produce a simple test case so we can reproduce this? Thanks,
  2. Adam Fennell 2016-10-28

    I experienced the same issue years ago, using Android KitKat, with the exact same symptoms. It looks like this issue persists even with Marshmallow. The workaround is to set webView.borderRadius = 1, which causes hardware acceleration to be disabled. If possible, it would still be nice for Appcelerator's WebView implementation to automatically detect and handle this.
  3. Adam Fennell 2016-10-28

    It is worth adding that the performance of Google Maps, in a WebView on Marshmallow, is nearly unusable. I'm unsure the reason for this, and hope that the Appcelerator team may shed some light.

JSON Source