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










share|improve this question
























  • 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















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










share|improve this question
























  • 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













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










share|improve this question















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







android google-signin google-play-games






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 at 1:13

























asked Nov 20 at 0:53









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


















  • 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












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






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    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

























    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






    share|improve this answer

























      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






      share|improve this answer























        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






        share|improve this answer












        I updated VERSION CODE to the newest one and loaded the play console into the closed alpha access, everything worked







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 29 at 19:29









        sakuraso13

        53




        53






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            404 Error Contact Form 7 ajax form submitting

            How to know if a Active Directory user can login interactively

            TypeError: fit_transform() missing 1 required positional argument: 'X'