4

HI All my Google PlayStore Reject my application because below code is in my application.

check sakiM's answer.

@Override
public void onReceivedSslError(WebView view, final SslErrorHandler handler, SslError error) {
    final AlertDialog.Builder builder = new AlertDialog.Builder(this);
    builder.setMessage(R.string.notification_error_ssl_cert_invalid);
    builder.setPositiveButton("continue", new DialogInterface.OnClickListener() {
        @Override
        public void onClick(DialogInterface dialog, int which) {
            handler.proceed();
        }
    });
    builder.setNegativeButton("cancel", new DialogInterface.OnClickListener() {
        @Override
        public void onClick(DialogInterface dialog, int which) {
            handler.cancel();
        }
    });
    final AlertDialog dialog = builder.create();
    dialog.show();
}

How to fix this error?

Error mail from play store : Hello Google Play Developer,

We rejected YOurAPP, with package name com.example.myApp, for violating our Malicious Behavior or User Data policy. If you submitted an update, the previous version of your app is still available on Google Play.

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

Below is the list of issues and the corresponding APK versions that were detected in your recent submission. Please upgrade your app(s) as soon as possible and increment the version number of the upgraded APK.

Vulnerability APK Version(s) Past Due Date SSL Error HandlerFor more information on how to address WebView SSL Error Handler alerts, please see this Google Help Center article. 12 November 30, 2016

To confirm you’ve upgraded correctly, submit the updated version of your app to the Play Console and check back after five hours to make sure the warning is gone.

While these vulnerabilities may not affect every app that uses this software, it’s best to stay up to date on all security patches. Make sure to update any libraries in your app that have known security issues, even if you're not sure the issues are relevant to your app.

Apps must also comply with the Developer Distribution Agreement and Developer Program Policies.

If you feel we have made this determination in error, please reach out to our developer support team.

Best,

The Google Play Team

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
Mr X
  • 1,053
  • 2
  • 11
  • 24
  • 2
    The idea is that you are supposed to examine the `SSLCertificate` inside the `SSLError` and determine if this is indeed a valid certificate for whatever server you are hitting. Then, and only then, do you call `proceed()`. – CommonsWare Jan 18 '19 at 15:04
  • 1
    @CommonsWare I have valid certificate in website but it's not working on API level 19 , it's throw sslError . – Mr X Jan 18 '19 at 15:07
  • 1
    Possible duplicate of [Google Play Error: SSL Error Handler vulnerabilities and APP UPDATE REJECTED](https://stackoverflow.com/questions/41236517/google-play-error-ssl-error-handler-vulnerabilities-and-app-update-rejected) – Jeremy Mar 06 '19 at 22:16

0 Answers0