iOS Question FirebaseAuth with WebView

fabio borges

Member
Licensed User
I'm trying to login to my application with Facebook using FirebaseAuth, however when I call facebook.SignIn, it doesn't trigger the Auth_SignedIn (User As FirebaseUser) event after I accept to sign in with Facebook and Continue. Any idea how I could do that? thanks.

Call format not using webView:
B4X:
Sub btnSignInFacebook_Click
    facebook.SignIn
End Sub

Call format using webView:
B4X:
Sub WebView1_PageFinished (Success As Boolean, url As String)
     If Success Then       
        If url.Contains("FacebookLogin") Then
            facebook.SignIn
        End If
    Else
        WebView.Visible = False
        NavControl.ShowPage(PageError)
    End If
    
    hd.ProgressDialogHide
    Return
End Sub
 

JohnC

Expert
Licensed User
What version of B4i are you using?

I ask because version 6.5 was recently released and it states:

Internal WebView is now based on WKWebView. There is also a new EvaluateJavaScript method.

So maybe the different webview might bring you better luck?

 
Upvote 0

Erel

Administrator
Staff member
Licensed User
Why are you using WebView here?

 
Upvote 0

fabio borges

Member
Licensed User
Why are you using WebView here?

Because my app is web, as you can see, and I would just like to run it through WebView without having to program the elements.
 
Upvote 0

fabio borges

Member
Licensed User
I don't see any relation between WebView and FirebaseAuth. Does it work without WebView?
ok, so you think that by configuring the Facebook Login directly through the web program I would not need any configuration through Firebase?
The problem is that, in this format, login works if I access from any browser but it doesn't work through the apps, iOS or Android, for that reason I'm trying to do it using Firebase.
 
Upvote 0
Top