iOS Question FirebaseAuth - Authenticate your users (Google + Facebook)

Alberto Iglesias

Well-Known Member
Licensed User
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


Somebody can help me? Or use another solution to login with Facebook?

 

Attachments

Alberto Iglesias

Well-Known Member
Licensed User
iPhone 6 - 128gb
iOS 8.1
Local Builder with this versions:

B4i Build Server
Build server is running.
Version: 3.01
Server time: 17:35:12
Mac SSL Key
Key IP: 192.168.0.14
SSL port: 51042
h files
  • axa: 1.00
  • DatePersian: 1.00
  • iActivityBar: 1.02
  • iAd: 1.00
  • iAdMob: 1.50
  • iALAssets: 1.00
  • iAnalytics: 1.0
  • iArchiver: 1.01
  • iAwesomeMenu: 2.04
  • iAwesomeMessage: 1.00
  • iBarcode: 1.20
  • iBLE: 2.00
  • iBlur: 1.04
  • iBlurScreen: 1.00
  • iCEA: 0.33
  • iCircleProgress: 1.00
  • iComboBox: 1.06
  • iContacts: 1.00
  • iCore: 3.00
  • iDebug: 1.60
  • iDebug2: 1.60
  • iDesigner: 1.20
  • iDropboxSync: 1.00
  • iEncryption: 1.02
  • iExternalAccessory: 1.06
  • iFacebook: 1.00
  • iFirebaseAnalytics: 1.00
  • iFirebaseAuth: 1.02
  • iFirebaseNotifications: 1.00
  • iFirebaseStorage: 1.00
  • iFloatingButton: 1.00
  • iGameView: 1.0
  • iGoogleMaps: 1.10
  • iHttp: 1.01
  • iHUD: 1.00
  • iJSON: 1.0
  • iLeadbolt: 2.00
  • iLicense: 1.00
  • iLocation: 1.20
  • iMedia: 1.21
  • iMQTT: 1.0
  • iNet: 1.30
  • iNetwork: 1.20
  • iPhone: 1.70
  • ipop: 1.03
  • iPopMenu: 1.01
  • iPopView: 1.00
  • iProgress: 1.01
  • iRandomAccessFile: 1.50
  • iRateView: 1.00
  • iReleaseLogger: 1.00
  • iSideMenu: 1.01
  • iSpriteKit: 1.00
  • iSQL: 1.30
  • iStore: 1.0
  • iStringUtils: 1.00
  • iSVG: 1.00
  • iTableView: 1.21
  • iTableView2: 1.21
  • iUI8: 1.20
  • iUI9: 1.0
  • iVNMQTT: 2.04
  • iWebSocket: 1.00
  • iXmlBuilder: 1.00
  • iXmlSax: 1.10
  • iYoutubeParser: 1.00
  • MQTTKit
  • vntools: 1.02
a files
  • libAdapterInMobi, size=1,125,360, modified=10/16/2016 10:43:42
  • libaxa, size=491,560, modified=08/31/2015 15:42:50
  • libchilkatIos, size=74,306,832, modified=03/17/2016 21:38:41
  • libCore, size=3,516,792, modified=10/16/2016 10:43:42
  • libDatePersian, size=63,904, modified=03/02/2017 16:00:41
  • libGoogleAdMobAds, size=13,403,052, modified=11/23/2014 17:46:20
  • libiActivityBar, size=676,200, modified=02/03/2017 08:37:23
  • libiAd, size=36,880, modified=10/16/2016 10:43:42
  • libiAdMob, size=94,960, modified=10/16/2016 10:43:42
  • libiALAssets, size=211,224, modified=02/28/2017 17:19:21
  • libiAnalytics, size=39,504, modified=10/16/2016 10:43:42
  • libiArchiver, size=245,120, modified=10/16/2016 10:43:42
  • libiAwesomeMenu, size=506,384, modified=08/25/2016 15:40:17
  • libiAwesomeMessage, size=410,864, modified=02/05/2015 22:57:49
  • libiBarcode, size=247,568, modified=10/16/2016 10:43:42
  • libiBLE, size=226,416, modified=10/16/2016 10:43:42
  • libiBlur, size=299,456, modified=11/21/2016 18:25:05
  • libiBlurScreen, size=550,392, modified=03/04/2015 20:37:47
  • libiCEA, size=5,142,640, modified=11/23/2015 20:10:56
  • libiCircleProgress, size=401,120, modified=03/11/2017 11:26:12
  • libiComboBox, size=972,416, modified=02/23/2017 20:47:42
  • libiContacts, size=111,512, modified=10/16/2016 10:43:42
  • libiDebug, size=1,022,464, modified=06/30/2015 06:15:48
  • libiDebug2, size=1,077,520, modified=10/16/2016 10:43:42
  • libiDesigner, size=846,912, modified=10/16/2016 10:43:42
  • libiDropboxSync, size=80,960, modified=10/16/2016 10:43:42
  • libiEncryption, size=67,752, modified=10/16/2016 10:43:42
  • libiExternalAccessory, size=1,445,336, modified=03/20/2017 17:35:16
  • libiFacebook, size=52,672, modified=10/16/2016 10:43:42
  • libiFirebaseAnalytics, size=31,608, modified=10/16/2016 10:43:42
  • libiFirebaseAuth, size=158,688, modified=10/16/2016 10:43:42
  • libiFirebaseNotifications, size=49,976, modified=10/16/2016 10:43:42
  • libiFirebaseStorage, size=91,344, modified=10/16/2016 10:43:42
  • libiFloatingButton, size=179,960, modified=11/29/2016 16:50:08
  • libiGameView, size=3,804,208, modified=10/16/2016 10:43:42
  • libiGoogleMaps, size=160,616, modified=10/16/2016 10:43:42
  • libiHttp, size=121,800, modified=10/16/2016 10:43:42
  • libiHUD, size=285,496, modified=10/16/2016 10:43:42
  • libiJSON, size=53,320, modified=10/16/2016 10:43:42
  • libiLeadbolt, size=21,440, modified=10/16/2016 10:43:42
  • libiLocation, size=122,192, modified=10/16/2016 10:43:42
  • libiMedia, size=254,864, modified=10/16/2016 10:43:42
  • libiMQTT, size=1,575,592, modified=10/16/2016 10:43:44
  • libiNet, size=542,520, modified=10/16/2016 10:43:44
  • libiNetwork, size=261,320, modified=10/16/2016 10:43:44
  • libiPhone, size=294,336, modified=10/16/2016 10:43:44
  • libiRandomAccessFile, size=385,184, modified=10/16/2016 10:43:44
  • libiReleaseLogger, size=49,976, modified=10/16/2016 10:43:44
  • libiSideMenu, size=504,704, modified=10/16/2016 10:43:44
  • libiSQL, size=401,008, modified=10/16/2016 10:43:44
  • libiStore, size=51,224, modified=10/16/2016 10:43:44
  • libiStringUtils, size=55,328, modified=10/16/2016 10:43:44
  • libiSVG, size=57,360, modified=10/16/2016 10:43:44
  • libiTableView, size=194,152, modified=10/16/2016 10:43:44
  • libiTableView2, size=215,520, modified=12/06/2015 14:57:34
  • libiUI8, size=501,424, modified=10/16/2016 10:43:44
  • libiUI9, size=66,552, modified=10/16/2016 10:43:44
  • libiVNMQTT, size=113,736, modified=10/26/2015 15:39:26
  • libiWebSocket, size=391,936, modified=10/16/2016 10:43:44
  • libiXmlBuilder, size=151,200, modified=10/16/2016 10:43:44
  • libiXmlSax, size=61,888, modified=10/16/2016 10:43:44
  • libiYoutubeParser, size=202,616, modified=08/17/2016 14:26:28
  • libLeadboltOverlay, size=3,721,828, modified=12/01/2014 11:03:42
  • libMQTTKit, size=538,344, modified=01/29/2015 08:50:17
  • libRateView, size=162,952, modified=05/03/2015 17:50:45
  • libsasl2, size=765,592, modified=08/14/2015 15:33:21
  • libvntools, size=741,256, modified=11/30/2016 20:36:39
 

Alberto Iglesias

Well-Known Member
Licensed User
I tried in another iphone 7 with iOS 10.2.1 and the behavior is the same.

If you can see the log, after Configuring the default app.

take a look in my log generated by iOS Console. (attach)

B4X:
Mar 31 12:49:52 iPhone-de-Alberto B4i Example[1860] <Warning>: You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
Mar 31 12:49:52 iPhone-de-Alberto B4i Example[1860] <Warning>: didFinishLaunchingWithOptions
Mar 31 12:49:52 iPhone-de-Alberto B4i Example[1860] <Warning>: Configuring the default app.
Mar 31 12:49:52 iPhone-de-Alberto SpringBoard[92] <Warning>: No valid 'aps-environment' entitlement string found for application 'B4i Example': (null). Notifications will not be delivered.
Mar 31 12:49:52 iPhone-de-Alberto B4i Example[1860] <Notice>: dyld: lazy symbol binding failed: Symbol not found: _objc_unsafeClaimAutoreleasedReturnValue
 

Attachments

HuZz

Member
Licensed User
I've ran your project as is and it didn't crash in the auth.Initialize line.

It did crash later when I click on the Facebook button with this error:
fb269766340041798 is not registered as a URL scheme. Please add it in your Info.plist

1. Which OS version are you using?
2. Are you using the hosted builder?
Hi,
i'm replying to this thread because i'm on this exact error... i followed Erel's guide to configure Firebase authentication with facebook (google authentication works fine), but when clicking on FB login button on the app, i get this error: "fb1960878654157916 is not registered as a URL scheme. Please add it in your Info.plist"

Here's complete log:
Error occurred on line: 72 (Main)
fb1960878654157916 is not registered as a URL scheme. Please add it in your Info.plist
Stack Trace: (
CoreFoundation <redacted> + 148
libobjc.A.dylib objc_exception_throw + 56
B4i Example +[FBSDKInternalUtility validateFacebookReservedURLSchemes] + 0
B4i Example -[FBSDKLoginManager logInParametersWithPermissions:] + 96
B4i Example -[FBSDKLoginManager logInWithBehavior:] + 64
B4i Example -[FBSDKLoginManager logInWithPermissions:handler:] + 256
B4i Example -[FBSDKLoginManager logInWithReadPermissions:fromViewController:handler:] + 288
B4i Example -[iFacebook SignIn] + 152
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 292
B4i Example +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1624
B4i Example -[B4IShell runVoidMethod] + 232
B4i Example -[B4IShell raiseEventImpl:method:args::] + 1416
B4i Example -[B4IShellBI raiseEvent:event:params:] + 1408
B4i Example __33-[B4I raiseUIEvent:event:params:]_block_invoke + 60
libdispatch.dylib <redacted> + 24
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 1016
CoreFoundation <redacted> + 12
CoreFoundation <redacted> + 2012
CoreFoundation CFRunLoopRunSpecific + 436
GraphicsServices GSEventRunModal + 100
UIKit UIApplicationMain + 208
B4i Example main + 124
libdyld.dylib <redacted> + 4
)

i'm not able to find a solution to this... i don't know which info.plist i've to update with the url scheme...
I'm testing this on my iphone 7 running ios11 and i'm using the hosted builder...

thanks...
 
Last edited:

HuZz

Member
Licensed User
Sorry, i tought this is the right place as i get same issues as exposed earlier in the post..

anyway i added (i think i did) all #urlScheme needed as shown in the tutorial. Here's the code..
B4X:
#UrlScheme: com.googleusercontent.apps.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

#QueriesSchemes: fbapi
#QueriesSchemes: fb-messenger-api
#QueriesSchemes: fbauth2
#QueriesSchemes: fbshareextension
#UrlScheme: fb1960878654157916

Sub Process_Globals
    Public App As Application
    Public NavControl As NavigationController
    Private Page1 As Page
    Private analytics As FirebaseAnalytics
    Private auth As FirebaseAuth
    Private btnSignInGoogle As Button
    Private btnSignOut As Button
    Private lblName As Label
    Private btnSignInFacebook As Button
    Private facebook As FacebookSdk
    Private FacebookAppId As String = "1960878654157916"
End Sub
 
Top