Jul 4, 2016 Replies: 27 Start with this tutorial: https://www.b4x.com/android/forum/threads/firebase-integration.68623/ FirebaseAuth allows your app to identify the user based on their Google or Facebook accounts. We will start with Google integration. 1. Make sure that Google is enabled under Authentication - Sign-in methods: 2. Open GoogleService-Info.plist with a text editor and copy the key that is under REVERSED_CLIENT_ID: 3. Add this value with: Code: #UrlScheme: com.googleusercontent.apps.250280117927-3n8kkn0a8oveo2olg2tcnuefmntv5toi 4. Handle Application_OpenUrl and call FirebaseAuth.OpenUrl. Note that the signature of Application_OpenUrl has changed in v2.80: Code: Private Sub Application_OpenUrl (Url As String, Data As Object, SourceApplication As String) As Boolean If auth.OpenUrl(Url, Data, SourceApplication) Then Return True Return False End Sub See the attached project. Don't forget to download GoogleService-Info.plist to Files\Special. iFirebaseAuth v2.51 is attached. It is an internal library. It adds a SignError (Error As Exception) event. Attachments FirebaseAuthGoogle.zip FirebaseAuthGoogle.zip 26.5 KB · Views: 1,869 iFirebaseAuth.zip iFirebaseAuth.zip 69.6 KB · Views: 1,160 Last edited: Mar 17, 2021 Click to expand...
Start with this tutorial: https://www.b4x.com/android/forum/threads/firebase-integration.68623/ FirebaseAuth allows your app to identify the user based on their Google or Facebook accounts. We will start with Google integration. 1. Make sure that Google is enabled under Authentication - Sign-in methods: 2. Open GoogleService-Info.plist with a text editor and copy the key that is under REVERSED_CLIENT_ID: 3. Add this value with: Code: #UrlScheme: com.googleusercontent.apps.250280117927-3n8kkn0a8oveo2olg2tcnuefmntv5toi 4. Handle Application_OpenUrl and call FirebaseAuth.OpenUrl. Note that the signature of Application_OpenUrl has changed in v2.80: Code: Private Sub Application_OpenUrl (Url As String, Data As Object, SourceApplication As String) As Boolean If auth.OpenUrl(Url, Data, SourceApplication) Then Return True Return False End Sub See the attached project. Don't forget to download GoogleService-Info.plist to Files\Special. iFirebaseAuth v2.51 is attached. It is an internal library. It adds a SignError (Error As Exception) event.
narek adonts Well-Known Member Licensed User Longtime User Sep 27, 2016 #21 When tryig to auth with Facebook a Webview is opened asking to enter email and password. But with other iOS apps native Facebook App is opened for auth. How can I achieve this?
When tryig to auth with Facebook a Webview is opened asking to enter email and password. But with other iOS apps native Facebook App is opened for auth. How can I achieve this?
Erel B4X founder Staff member Licensed User Longtime User Sep 27, 2016 #22 I think that it should happen automatically. Have you set your facebook app status to public?
narek adonts Well-Known Member Licensed User Longtime User Sep 27, 2016 #23 Erel said: I think that it should happen automatically. Have you set your facebook app status to public? Click to expand... Yes. Is anybody else encountering the same?
Erel said: I think that it should happen automatically. Have you set your facebook app status to public? Click to expand... Yes. Is anybody else encountering the same?
tufanv Expert Licensed User Longtime User Sep 29, 2016 #24 for me , always webview is opening not app.
Erel B4X founder Staff member Licensed User Longtime User Sep 29, 2016 #25 Seems like Facebook changed the behavior to avoid the "do you want to open... app" dialog: http://stackoverflow.com/questions/32620002/facebook-login-ios-9-without-safari
Seems like Facebook changed the behavior to avoid the "do you want to open... app" dialog: http://stackoverflow.com/questions/32620002/facebook-login-ios-9-without-safari
Alberto Iglesias Well-Known Member Licensed User Longtime User Mar 28, 2017 #26 For me really NOT SHOWING any error messages, just die the app when pass in the "auth" line. I can´t see where I put some wrong, it´s just like use the sample attach by Erel. #UrlScheme: com.googleusercontent.apps.172587243087-o2lb4ol8gr6s1h0nntc8vm46a7clhigl #QueriesSchemes: fbapi #QueriesSchemes: fb-messenger-api #QueriesSchemes: fbauth2 #QueriesSchemes: fbshareextension #UrlScheme: fb989479777824608 Someboady can help me? Or use another solution to login with Facebook?
For me really NOT SHOWING any error messages, just die the app when pass in the "auth" line. I can´t see where I put some wrong, it´s just like use the sample attach by Erel. #UrlScheme: com.googleusercontent.apps.172587243087-o2lb4ol8gr6s1h0nntc8vm46a7clhigl #QueriesSchemes: fbapi #QueriesSchemes: fb-messenger-api #QueriesSchemes: fbauth2 #QueriesSchemes: fbshareextension #UrlScheme: fb989479777824608 Someboady can help me? Or use another solution to login with Facebook?
Erel B4X founder Staff member Licensed User Longtime User Mar 29, 2017 #27 You are posting in a different thread each time. Please start a new thread in the questions forum.
Alberto Iglesias Well-Known Member Licensed User Longtime User Mar 29, 2017 #28 ok last try: https://www.b4x.com/android/forum/t...uthenticate-your-users-google-facebook.77896/