GoogleSignInAccount not logged in
up vote
2
down vote
favorite
OnActivityResult
if (requestCode == RC_SIGN_IN) {
Task<GoogleSignInAccount> task =
GoogleSignIn.getSignedInAccountFromIntent(data);
try {
GoogleSignInAccount account = task.getResult(ApiException.class);
onConnected(account);
new AlertDialog.Builder(this)
.setMessage("All ok")
.setNeutralButton(android.R.string.ok, null)
.show();
} catch (ApiException apiException) {
String message = apiException.getMessage();
if (message == null || message.isEmpty()) {
message = "Error";
}
onDisconnected();
new AlertDialog.Builder(this)
.setMessage(message)
.setNeutralButton(android.R.string.ok, null)
.show();
}
}
Button
private void startSignInIntent() {
startActivityForResult(mGoogleSignInClient.getSignInIntent(), RC_SIGN_IN);
}
SILENT SIGN IN
private void signInSilently() {
Log.d("123", "signInSilently()");
mGoogleSignInClient.silentSignIn().addOnCompleteListener(this,
new OnCompleteListener<GoogleSignInAccount>() {
@Override
public void onComplete(@NonNull Task<GoogleSignInAccount> task) {
if (task.isSuccessful()) {
Log.d("123", "signInSilently(): success");
onConnected(task.getResult());
} else {
Log.d("123", "signInSilently(): failure", task.getException());
onDisconnected();
}
}
});
}
START ACTIVITY
mGoogleSignInClient = GoogleSignIn.getClient(this,
new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN).build());
When I click on the "authorization" button, I can register an account, but after registration an error is generated 4:, I looked through the documentation and did not find what this means, it is possible that I'm just blind. Help the poor how to solve it and what it is
![](http://i.stack.imgur.com/bk9VA.png)
![](http://i.stack.imgur.com/Ryr18.png)
add a comment |
up vote
2
down vote
favorite
OnActivityResult
if (requestCode == RC_SIGN_IN) {
Task<GoogleSignInAccount> task =
GoogleSignIn.getSignedInAccountFromIntent(data);
try {
GoogleSignInAccount account = task.getResult(ApiException.class);
onConnected(account);
new AlertDialog.Builder(this)
.setMessage("All ok")
.setNeutralButton(android.R.string.ok, null)
.show();
} catch (ApiException apiException) {
String message = apiException.getMessage();
if (message == null || message.isEmpty()) {
message = "Error";
}
onDisconnected();
new AlertDialog.Builder(this)
.setMessage(message)
.setNeutralButton(android.R.string.ok, null)
.show();
}
}
Button
private void startSignInIntent() {
startActivityForResult(mGoogleSignInClient.getSignInIntent(), RC_SIGN_IN);
}
SILENT SIGN IN
private void signInSilently() {
Log.d("123", "signInSilently()");
mGoogleSignInClient.silentSignIn().addOnCompleteListener(this,
new OnCompleteListener<GoogleSignInAccount>() {
@Override
public void onComplete(@NonNull Task<GoogleSignInAccount> task) {
if (task.isSuccessful()) {
Log.d("123", "signInSilently(): success");
onConnected(task.getResult());
} else {
Log.d("123", "signInSilently(): failure", task.getException());
onDisconnected();
}
}
});
}
START ACTIVITY
mGoogleSignInClient = GoogleSignIn.getClient(this,
new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN).build());
When I click on the "authorization" button, I can register an account, but after registration an error is generated 4:, I looked through the documentation and did not find what this means, it is possible that I'm just blind. Help the poor how to solve it and what it is
![](http://i.stack.imgur.com/bk9VA.png)
![](http://i.stack.imgur.com/Ryr18.png)
Could you provide the error?
– abielita
Nov 20 at 16:25
I learned that the error is referred to as SIGN_IN_REQUIRED, but it did not help me much. Where to report?
– sakuraso13
Nov 20 at 16:35
Same thing happens to me. Have you managed to solve?
– MMagician
Nov 25 at 12:30
Yes, in my case it was that my version code was outdated and I did not consider it. I updated the version code and filled in the alpha closed access to the play console, and everything worked out!
– sakuraso13
Nov 29 at 19:29
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
OnActivityResult
if (requestCode == RC_SIGN_IN) {
Task<GoogleSignInAccount> task =
GoogleSignIn.getSignedInAccountFromIntent(data);
try {
GoogleSignInAccount account = task.getResult(ApiException.class);
onConnected(account);
new AlertDialog.Builder(this)
.setMessage("All ok")
.setNeutralButton(android.R.string.ok, null)
.show();
} catch (ApiException apiException) {
String message = apiException.getMessage();
if (message == null || message.isEmpty()) {
message = "Error";
}
onDisconnected();
new AlertDialog.Builder(this)
.setMessage(message)
.setNeutralButton(android.R.string.ok, null)
.show();
}
}
Button
private void startSignInIntent() {
startActivityForResult(mGoogleSignInClient.getSignInIntent(), RC_SIGN_IN);
}
SILENT SIGN IN
private void signInSilently() {
Log.d("123", "signInSilently()");
mGoogleSignInClient.silentSignIn().addOnCompleteListener(this,
new OnCompleteListener<GoogleSignInAccount>() {
@Override
public void onComplete(@NonNull Task<GoogleSignInAccount> task) {
if (task.isSuccessful()) {
Log.d("123", "signInSilently(): success");
onConnected(task.getResult());
} else {
Log.d("123", "signInSilently(): failure", task.getException());
onDisconnected();
}
}
});
}
START ACTIVITY
mGoogleSignInClient = GoogleSignIn.getClient(this,
new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN).build());
When I click on the "authorization" button, I can register an account, but after registration an error is generated 4:, I looked through the documentation and did not find what this means, it is possible that I'm just blind. Help the poor how to solve it and what it is
![](http://i.stack.imgur.com/bk9VA.png)
![](http://i.stack.imgur.com/Ryr18.png)
OnActivityResult
if (requestCode == RC_SIGN_IN) {
Task<GoogleSignInAccount> task =
GoogleSignIn.getSignedInAccountFromIntent(data);
try {
GoogleSignInAccount account = task.getResult(ApiException.class);
onConnected(account);
new AlertDialog.Builder(this)
.setMessage("All ok")
.setNeutralButton(android.R.string.ok, null)
.show();
} catch (ApiException apiException) {
String message = apiException.getMessage();
if (message == null || message.isEmpty()) {
message = "Error";
}
onDisconnected();
new AlertDialog.Builder(this)
.setMessage(message)
.setNeutralButton(android.R.string.ok, null)
.show();
}
}
Button
private void startSignInIntent() {
startActivityForResult(mGoogleSignInClient.getSignInIntent(), RC_SIGN_IN);
}
SILENT SIGN IN
private void signInSilently() {
Log.d("123", "signInSilently()");
mGoogleSignInClient.silentSignIn().addOnCompleteListener(this,
new OnCompleteListener<GoogleSignInAccount>() {
@Override
public void onComplete(@NonNull Task<GoogleSignInAccount> task) {
if (task.isSuccessful()) {
Log.d("123", "signInSilently(): success");
onConnected(task.getResult());
} else {
Log.d("123", "signInSilently(): failure", task.getException());
onDisconnected();
}
}
});
}
START ACTIVITY
mGoogleSignInClient = GoogleSignIn.getClient(this,
new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN).build());
When I click on the "authorization" button, I can register an account, but after registration an error is generated 4:, I looked through the documentation and did not find what this means, it is possible that I'm just blind. Help the poor how to solve it and what it is
![](http://i.stack.imgur.com/bk9VA.png)
![](http://i.stack.imgur.com/Ryr18.png)
![](http://i.stack.imgur.com/bk9VA.png)
![](http://i.stack.imgur.com/Ryr18.png)
edited Nov 20 at 1:13
asked Nov 20 at 0:53
![](https://i.stack.imgur.com/peEUz.jpg?s=32&g=1)
![](https://i.stack.imgur.com/peEUz.jpg?s=32&g=1)
sakuraso13
53
53
Could you provide the error?
– abielita
Nov 20 at 16:25
I learned that the error is referred to as SIGN_IN_REQUIRED, but it did not help me much. Where to report?
– sakuraso13
Nov 20 at 16:35
Same thing happens to me. Have you managed to solve?
– MMagician
Nov 25 at 12:30
Yes, in my case it was that my version code was outdated and I did not consider it. I updated the version code and filled in the alpha closed access to the play console, and everything worked out!
– sakuraso13
Nov 29 at 19:29
add a comment |
Could you provide the error?
– abielita
Nov 20 at 16:25
I learned that the error is referred to as SIGN_IN_REQUIRED, but it did not help me much. Where to report?
– sakuraso13
Nov 20 at 16:35
Same thing happens to me. Have you managed to solve?
– MMagician
Nov 25 at 12:30
Yes, in my case it was that my version code was outdated and I did not consider it. I updated the version code and filled in the alpha closed access to the play console, and everything worked out!
– sakuraso13
Nov 29 at 19:29
Could you provide the error?
– abielita
Nov 20 at 16:25
Could you provide the error?
– abielita
Nov 20 at 16:25
I learned that the error is referred to as SIGN_IN_REQUIRED, but it did not help me much. Where to report?
– sakuraso13
Nov 20 at 16:35
I learned that the error is referred to as SIGN_IN_REQUIRED, but it did not help me much. Where to report?
– sakuraso13
Nov 20 at 16:35
Same thing happens to me. Have you managed to solve?
– MMagician
Nov 25 at 12:30
Same thing happens to me. Have you managed to solve?
– MMagician
Nov 25 at 12:30
Yes, in my case it was that my version code was outdated and I did not consider it. I updated the version code and filled in the alpha closed access to the play console, and everything worked out!
– sakuraso13
Nov 29 at 19:29
Yes, in my case it was that my version code was outdated and I did not consider it. I updated the version code and filled in the alpha closed access to the play console, and everything worked out!
– sakuraso13
Nov 29 at 19:29
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
I updated VERSION CODE to the newest one and loaded the play console into the closed alpha access, everything worked
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I updated VERSION CODE to the newest one and loaded the play console into the closed alpha access, everything worked
add a comment |
up vote
0
down vote
I updated VERSION CODE to the newest one and loaded the play console into the closed alpha access, everything worked
add a comment |
up vote
0
down vote
up vote
0
down vote
I updated VERSION CODE to the newest one and loaded the play console into the closed alpha access, everything worked
I updated VERSION CODE to the newest one and loaded the play console into the closed alpha access, everything worked
answered Nov 29 at 19:29
![](https://i.stack.imgur.com/peEUz.jpg?s=32&g=1)
![](https://i.stack.imgur.com/peEUz.jpg?s=32&g=1)
sakuraso13
53
53
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53384722%2fgooglesigninaccount-not-logged-in%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Could you provide the error?
– abielita
Nov 20 at 16:25
I learned that the error is referred to as SIGN_IN_REQUIRED, but it did not help me much. Where to report?
– sakuraso13
Nov 20 at 16:35
Same thing happens to me. Have you managed to solve?
– MMagician
Nov 25 at 12:30
Yes, in my case it was that my version code was outdated and I did not consider it. I updated the version code and filled in the alpha closed access to the play console, and everything worked out!
– sakuraso13
Nov 29 at 19:29