0

I developed an App using the Ionic Platform and Cordova. After I submitted it to Google Playstore, I received and email about "security vulnerabilities".

This app uses software that contains security vulnerabilities for users or allows the collection of user data without proper disclosure.

Here's how they wanted to address WebView SSL Error Handler alerts.

I tried using AlertDialog.Builder as what this link fixed the issue.

I copied the code to SystemWebviewClient.java

final AlertDialog.Builder builder = new AlertDialog.Builder(this); 
...

But it's not accepting "this" as context parameter.

What do you think?

1 Answers1

0

You need to get the Context from the parent engine of the SystemWebviewClient by this.parentEngine.getView().getContext().

It worked for me but my app still gets rejected from Google Play Console.

Paolo
  • 39