Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updating to Firebase Android version 15.0.0, signs users out

When Updating com.google.firebase and com.google.android.gms from 11.8.0 to 15.0.0, our signed-in users are getting signed out. On checking, we are able to confirm that FirebaseAuth.getInstance().getCurrentUser() returns null.

A few other things i was able to confirm:

  1. This has been confirmed for Phone Auth and Email and Password Auth

  2. If I:

    1. Sign in to app v1 with library versions v11.8.0
    2. Update to app v2 with library versions v15.0.0

    I see myself signed OUT (as mentioned above).

    1. Do not bother to sign in again in this v2
    2. Update to app v3 with library versions set back to v11.8.0

    I see myself signed in.

  3. If I:

    1. Sign in to app v1 with library versions v15.0.0
    2. Update to app v2 with library versions set back to v11.8.0

    I see myself signed in.

    1. Now if i continue and, update to app v3 with library versions v15.0.0

    I still see myself signed in.

  4. I was able to reproduce this issue also if i upgrade from v12.0.1 to v15.0.0
  5. This is most likely an issue with the library itself (and not my code) since i was able to reproduce this issue using Firebase Android Auth Quickstart

Does anyone else face this? Is there something i am missing? Did i miss something relevant in the v15.0.0 Release Notes?

like image 956
Abdul Wasae Avatar asked Oct 16 '22 19:10

Abdul Wasae


1 Answers

I reached out to firebase support and they were also able to reproduce the aforementioned faulty behaviour. Turns out this is a an issue in v15.0.0 library itself.

Kyle from Firebase Support [Apr 25, 2018]:

After discussing this more with our engineers, they told me that the fix will be rolled-out on the next release (next version) soon. I can't provide the exact timeline for this but you may keep an eye out on the release notes for future updates with Firebase Android SDK.

Update [May 7, 2018]

Updating my dependencies from v11.8.0 directly to updates to Firebase Android SDK released on May 2, 2018 resolve the aforementioned issue.

like image 99
Abdul Wasae Avatar answered Nov 15 '22 07:11

Abdul Wasae