Closed rvcdev closed 6 years ago
yes, I am facing the same issue. Did you find any solution?
I am not sure, but the refactoring @SUPERCILEX is doing should help with a lot of IDP and auth stuff. The hope is, that that is going to fix a lot of errors, bugs and so on, I think the focus is to finish it as fast as possible, instead of trying to fix them in FireBaseUI 3.1.* (except it's a fatal error) @SUPERCILEX correct me if I am in the wrong XD
@yash59 - No, I didn't find a fix. The issue still occurs.
@Kurt29 - Thanks for the feedback!
@Kurt29 I believe this is just a memory leak, and yes, separating the UI and background work stacks should fix the numerous mini task listener and view leaks peppered throughout FirebaseUI.
@Supercilex Since when is something βjustβ a memory leak? XD
@Kurt29 π yeah, sorry. I meant it's not the end of the world compared to a crash, but still definitely something we need to fix.
π was just kidding That was what I meant with my comment, that there are some bugs with more priority.
ππ
I have a production app on play store and many users are facing this issue. anyone have any idea or alternative to solve this issue?
@rvcdev @yash59 I can't repro on v3.2.1
... are you sure it requires 2 taps to start the Google sign-in flow? And the steps are just starting the flow and clicking on the Google button?
@SUPERCILEX - I was experiencing the problem in v3.1.0
, I've since moved all sign-in related code to it's own SignInActivity
and upgraded Firebase UI to v3.1.3
to match my updated build target for Android O. No more leaks during my sign-in flow and no more needing to tap any of the sign-in buttons more than once. :smile:
Oh hey, sweet! @samtstern looks like this can be closed. π
Nice!
For reference, I checked the open and closed issues. All issues referencing the same type of exception were for older versions of FirebaseUI and the resolution was to update FirebaseUI to the latest version which included the fix. Here I am using the latest versions of FirebaseUI and their corresponding Google Play Services versions from the table included in the FirebaseUI README.
My Android-fu is by no means "pro", so if I've missed a step somewhere that is causing this, I'd appreciate any feedback.
Environment
Problem:
Steps to reproduce:
Observed Results:
Tapping sign-in is required twice for Google Sign-in. First tap results in the following exception captured in logcat:
Expected Results:
Relevant Code:
AndroidManifest.xml:
Project.gradle:
App.gradle:
MainActivity.java; AuthStateListener setup: