The application interacts with Firebase and google services, respectively there is a file google-services.json. I guess the problem is with her. In particular, the error pops up after attempting to authenticate via a mobile phone (sending SMS with a code to a phone number). Further, the error code itself:

07-04 13:21:07.292 2872-12688/? E/Volley: [1511] BasicNetwork.performRequest: Unexpected response code 400 for https://www.googleapis.com/identitytoolkit/v3/relyingparty/sendVerificationCode?alt=proto&key=AIzaSyC1Uz6ATRtZx_en5cR1o5VNnsVpyy0IDyE 07-04 13:13:15.610 2872-12304/? I/AuthChimeraService: Error description received from server: The Android package name and signing-certificate fingerprint, my.project.faq.findme and DAF5B744BA643591947DA26B2FBBEA8768D664E9, do not match the app restrictions configured on your API key. Please use the API Console to update your key restrictions. 

When I try to add restrictions to google api console (Android application), I get the following error:

 07-04 13:13:15.610 2872-12685/? E/Volley: [1508] BasicNetwork.performRequest: Unexpected response code 403 for https://www.googleapis.com/identitytoolkit/v3/relyingparty/sendVerificationCode?alt=proto&key=AIzaSyC1Uz6ATRtZx_en5cR1o5VNnsVpyy0IDyE 07-04 13:13:15.610 2872-12304/? I/AuthChimeraService: Error description received from server: The Android package name and signing-certificate fingerprint, my.project.faq.findme and DAF5B744BA643591947DA26B2FBBEA8768D664E9, do not match the app restrictions configured on your API key. Please use the API Console to update your key restrictions. 

Perhaps adding a limit to google api consol, should you also edit the google-services.json file itself? Or am I thinking in the wrong direction? I repeat: the application works stably when launched with Android Studio. Unfortunately, I did not find any information on this issue. Any idea how to fix this?

  • Check that the application from the market and when running from the studio have the same packages and are signed with the same certificates. Maybe you set up a project in Firebase using debaz certificate. - Ramil Gabdrakhmanov
  • @RamilGabdrakhmanov in Firebase is all right with the package and certificate. And how to check it in the market, there is no possibility to add the package name and certificate, the generated apk file from the studio is also loaded there? Although I found the column 'Application Signatures' in the market, the certificate is different from the real one, it is impossible to change, you can download the certificates themselves. - Sergey Aghajanyan
  • I also have the Google Play App Signing service in the 'Signature of applications' column. Maybe something is wrong here? - Sergey Aghajanyan
  • one
    That is, you have a certificate for downloading applications and then Google Play re-signs your application to others. So, you need to specify in Firebase the hash of the certificate, which will be signed by the Google Play application - Ramil Gabdrakhmanov
  • @RamilGabdrakhmanov Indeed, this was a mistake. Thank you, problem solved! - Sergey Agadzhanyan

0