iOS Question Firebase storage usage

karld

Active Member
Licensed User
Longtime User
I checked out the tutorial on integrating Firebase into my IOS app.
I can't seem to figure it out.
Does anyone have some sample code to show me how this works?
All I want to be able to do is download a small XML file from Firebase

My android version of my app I have this working perfectly. I am still learning IOS side of things.

Thanks!

Karl
 

karld

Active Member
Licensed User
Longtime User
I went thru the instructions again that Erel posted above. Still not working right.
I have been searching the forums to no avail.

Here is where I am hung up..

As you can see, analytics is initialized...
B4X:
Private Sub Application_Start (Nav As NavigationController)
   analytics.Initialize
   NavControl = Nav
   Page1.Initialize("Page1")
   Page1.Title = "Page 1"
   Page1.RootPanel.LoadLayout("1")
   Page1.RootPanel.Color = Colors.White
   NavControl.ShowPage(Page1)
   pnlkeyboard.Visible=False

Is telling me the starter is not declared

B4i version: 2.80
Parsing code. Error
Error parsing program.
Error description: Undeclared variable 'starter' is used before it was assigned any value.
Occurred on line: 350 (Main)
Starter.storage.DownloadFile("/public/Update.xml", File.DBFileDir, UDFileName)

Here is code
B4X:
Sub UpdateServiceCodes
   
Starter.storage.DownloadFile("/public/Update.xml", File.DBFileDir, UDFileName)

End Sub

I thought starter is part of Firebase library?

I have this same code working on android. Been trying to figure out what the difference is between android and ios on this.
 
Upvote 0

karld

Active Member
Licensed User
Longtime User
Never mind... I am an idiot.
I forgot to initialize STORAGE...
Sigh... I need more coffee.....
 
Upvote 0
Top