Google Developer Login Configuration File for Multiple Developers

I am developing an Android application with a friend, and we have just implemented features for logging in to your Google account ( https://developers.google.com/identity/sign-in/web/sign-in ).

The code works fine on his phone, and if he sends me .apk, it works fine on mine too. If I try to create the source code in Android Studio, the application will behave differently. Now I get the error code 12501 ("SIGN_IN_CANCELLED") from the call to Auth.GoogleSignInApi.getSignInResultFromIntent (). The fact that it works with .apk built on his machine, but not with the source code created on mine, it seems to me that the problem is with the google-services.json configuration file, which was created using my friend SHA- 1 androiddebugkey which collides with my SHA-1 key used to build code.

Then my question is whether this is really the cause of my problem and what is the solution to this problem. Should google-services.json configuration file be created for each developer?

+4
source share
1 answer

Yes, that’s the reason. This happens when you create android apk using the google-services.json file that was created using your friends' SHA-1 key.

I hope the following answer helps fooobar.com/questions/1621336 / ...

0
source

Source: https://habr.com/ru/post/1621334/


All Articles