googlesamples / google-services

A collection of quickstart samples demonstrating the Google APIs for Android and iOS
https://developers.google.com
Apache License 2.0
3.07k stars 2.53k forks source link

GoogleSignIn.getLastSignedInAccount() returning null on Signed release APK after cold start #508

Open saurabhdtu opened 3 years ago

saurabhdtu commented 3 years ago

Hi, I am using GoogleSignIn in my app. In debug APK after killing the app and after cold boot GoogleSignIn.getLastSignedInAccount() returns the account which was used to sign in. But in release signed APK, after killing the app from memory and starting again this returns null. However, in normal launches (without killing it completely) of the app this is working fine.

saurabhdtu commented 3 years ago

Any update on this? @tjohns @domesticmouse @tiembo @nowsprinting

saurabhdtu commented 3 years ago

https://github.com/googleapis/google-auth-library-java/issues/683 This is what is actually happening in this issue