iOS Question Firebase auth ...App dies on auth.Initialize

Status
Not open for further replies.

GEoffT

Member
Licensed User
Longtime User
My App is dying as soon as I call auth.Initialize("auth"). I am sure I have followed the tutorial OK. There is no message in the Logs. Snippets of the code below. I have run out of ideas ... could somebody out there give me a clue?

Code: Copy
#iPhoneOrientations: Portrait
    #iPadOrientations: Portrait
    #Target: iPhone, iPad
    #MinVersion: 7
   
    #UrlScheme: com.googleusercontent.apps.931974386906-rcfnug446dno9kmiorj2r43s4cabqe7r
    #QueriesSchemes: fbapi
    #QueriesSchemes: fb-messenger-api
    #QueriesSchemes: fbauth2
    #QueriesSchemes: fbshareextension
    #UrlScheme: fb498424396995483

Code: Copy
Process_Globals
    'These global variables will be declared once when the application starts.
    'Public variables can be accessed from all modules.
    Public App As Application
    Public NavControl As NavigationController
    Private pg As Page
    Private csu As CallSubUtils

    Dim SQL1 As SQL
    Public pagex,pagey As Int
    Public analytics As FirebaseAnalytics
    Public auth As FirebaseAuth
    Public FacebookAppID As String = "498424396995483"
    Public  facebook As FacebookSdk

Code: Copy
Private Sub Application_Start (Nav As NavigationController)
    analytics.Initialize
    NavControl = Nav
    Nav.NavigationBarVisible = False
    Dim splashPage As Page
 
    splashPage.Initialize("")
    splashPage.rootpanel.LoadLayout("Splash")
    splashPage.Title = "Start"
    NavControl.ShowPage(splashPage)
    SQL1.Initialize(File.DirDocuments,"TTB.db",True)
    Log("sql1 is initialized = " & SQL1.IsInitialized)
    csu.Initialize
    csu.CallSubDelayedPlus(Me, "Splash", 3500)
End Sub

Public Sub Splash 
      pg.Initialize("Main")
    pg.RootPanel.LoadLayout("main")
    pg.Title = "Menu"
    pg.RootPanel.Color = Colors.Transparent
    pg.HideBackButton = True
    NavControl.ShowPage(pg)
    auth.Initialize("auth")
    facebook.Initialize(FacebookAppID)
 
Just realised that I had never logged on to Facebook with the test device. When I tried to download Facebook from the Appstore it says that Facebook requires iOS 8 or later.

My app is fully developed on Android...thought I'd get a cheap iPhone to test with while I convert to iOS...I guess that was a foolish thing to do!
 
Upvote 0
Yep, if you wanna play in Apples playground, you have to be up to date. in both hardware, and software. And pay out the nose to do it!
 
Upvote 0
Upvote 0
Status
Not open for further replies.
Back
Top