title: Google play store rejected application due to SSL Error Handler code
body: <p>HI All my Google PlayStore Reject my application because below code is in my application.</p>
  
  <p>check <a href="https://stackoverflow.com/a/36147896/3778703">sakiM's answer</a>.</p>
  
  <pre><code>@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();
  }
  </code></pre>
  
  <p>How to fix this error?</p>
  
  <p><strong>Error mail from play store :</strong> 
  Hello Google Play Developer,</p>
  
  <p>We rejected <strong>YOurAPP</strong>, with package name <strong>com.example.myApp</strong>, for violating our <a href="https://play.google.com/about/privacy-security-deception/malicious-behavior/" rel="nofollow noreferrer">Malicious Behavior</a> or <a href="https://play.google.com/about/privacy-security-deception/personal-sensitive/" rel="nofollow noreferrer">User Data</a> policy. If you submitted an update, the previous version of your app is still available on Google Play.</p>
  
  <p>This app uses software that contains security vulnerabilities for users or allows the collection of user data without proper disclosure.</p>
  
  <p>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.</p>
  
  <p><strong>Vulnerability APK Version(s)  Past Due Date</strong>
  <strong>SSL Error Handler</strong>For more information on how to address WebView SSL Error Handler alerts, please see this <a href="https://support.google.com/faqs/answer/7071387" rel="nofollow noreferrer">Google Help Center article</a>.  12  November 30, 2016</p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>Apps must also comply with the Developer Distribution Agreement and Developer Program Policies.</p>
  
  <p>If you feel we have made this determination in error, please reach out to our developer support team.</p>
  
  <p>Best,</p>
  
  <p>The Google Play Team</p>