Android Question Check status from Firebase Google Auth

Discussion in 'Android Questions' started by Waldemar Lima, May 1, 2019.

  1. Waldemar Lima

    Waldemar Lima Active Member Licensed User

    hello everyone !

    I am studying about login with google in firebase, and I came across a counter-time, how do I check if the user clicked off the edge of the login window with Gmail and the login was canceled?

    screenshot 1 : Screenshot_2.png ' this is whats happens when i click outside the login window with google

    screenshot 2 : Screenshot_3.png ' in the area represented by green, is the zone where if I click the login is canceled, I consider whether the user has canceled this login (by any method of cancellation)?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    1. Please post logs as text. Not screenshot.
    2. You can know that Activity_Resume was and the SignedIn event wasn't raised before it.

    Though in most cases you should just treat the state as not signed in until the SignedIn event is raised.
     
  3. Waldemar Lima

    Waldemar Lima Active Member Licensed User

    can i do it ?

    Code:
    Sub Activity_Resume
        
    If auth.CurrentUser.IsInitialized Then
            
    Log("Logged !")
        
    Else
            
    Log("Close Login ...")
        
    End If
    End Sub
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    I think that it should work. You need to test it.
     
  5. Waldemar Lima

    Waldemar Lima Active Member Licensed User

    it works ! thanks @Erel :D
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice