[
https://issues.apache.org/jira/browse/CB-10365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15102625#comment-15102625
]
Joe Bowser commented on CB-10365:
---------------------------------
Do you have a way of showing that it's not intercepting the request?
> Android 6.0 WebView don't intercept all urls
> --------------------------------------------
>
> Key: CB-10365
> URL: https://issues.apache.org/jira/browse/CB-10365
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: Master, 5.0.0
> Reporter: Jordi Murgo
> Labels: easyfix
>
> The call to public WebResourceResponse shouldInterceptRequest(WebView view,
> String url) was deprecated on LOLLIPOP, in favour of the new public
> WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest
> request).
> Android 6.0 WebView use the new one to handle ALL requests, and the old one
> only to handle the main document request.
> Possible fix in SystemWebViewClient.java, add the following method:
> @TargetApi(Build.VERSION_CODES.LOLLIPOP)
> @Override
> public WebResourceResponse shouldInterceptRequest(WebView view,
> WebResourceRequest request) {
> return this.shouldInterceptRequest(view, request.getUrl().toString());
> }
> Salut!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]