Android Google Auth Sign In get Id token handleSignInResult:false

后端 未结 4 1033
隐瞒了意图╮
隐瞒了意图╮ 2021-01-20 07:41

I am setting GoogleSignInOptions and Google Api Client like this

    GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SI         


        
4条回答
  •  旧时难觅i
    2021-01-20 07:55

    I believe that you need a call to client.connect(); as per documentation example:

    GoogleApiClient client = new GoogleApiClient.Builder(this)
             .addApi(Plus.API)
             .addScope(Plus.SCOPE_PLUS_LOGIN)
             .setAccountName("users.account.name@gmail.com")
             .build();
     client.connect();
    

    Or is it missing from your question and you are calling connect somwhere else in your code?

提交回复
热议问题