Replies: 1 comment
-
As you can see, there are no traces of SslErrorHandler on Capacitor itself, so something else is modifying the code and adding that handler, a plugin maybe? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
a few months earlier I've received warning from Google, that my application violates the "Device and Network Abuse" policy.
I have been informed that:
Finally Google removed my application from Google Play and gave more details:
I don't see anything suspicious in this class. Where is the SslErrorHandler used?
package com.getcapacitor;
import android.net.Uri;`
import android.webkit.WebResourceRequest;
import android.webkit.WebResourceResponse;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class BridgeWebViewClient extends WebViewClient {
private Bridge bridge;
public BridgeWebViewClient(Bridge bridge) {
this.bridge = bridge;
}
@OverRide
public WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest request) {
return bridge.getLocalServer().shouldInterceptRequest(request);
}
@OverRide
public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
Uri url = request.getUrl();
return bridge.launchIntent(url);
}
@OverRide
public boolean shouldOverrideUrlLoading(WebView view, String url) {
return bridge.launchIntent(Uri.parse(url));
}
}
Beta Was this translation helpful? Give feedback.
All reactions