Error 12501 authenticating with google sign-in

后端 未结 12 1944
我在风中等你
我在风中等你 2020-11-28 13:12

I\'m using google sign-in services to authenticate users that use my app. I got it to work when I just requested email information

GoogleSignInOptions gso =          


        
12条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 13:43

    Hi I have seen above comments but as I have done practical , its all sha issue , means if you will register the sha of particular ip address and get google.services json , that will perfect either you can use

       gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
                .requestEmail()
                .build();
    

    or gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestIdToken(LoginActivity.this.getResources().getString(R.string.server_client_id)) .requestEmail().build(); but if you want to create app on other ip address with other machine sha is showing you 12501 error status code so for that you need to generate again sha for that particular machine . Thanks

提交回复
热议问题