karld Active Member Licensed User Longtime User Apr 17, 2017 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Apr 18, 2017 #2 Have you followed these instructions: https://www.b4x.com/android/forum/threads/firebase-integration.68623/ ? Other than that it should be the same as in B4A. Upvote 0
Have you followed these instructions: https://www.b4x.com/android/forum/threads/firebase-integration.68623/ ? Other than that it should be the same as in B4A.
karld Active Member Licensed User Longtime User Apr 22, 2017 #3 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... Code: Copy 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 Code: Copy 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
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... Code: Copy 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 Code: Copy 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.
karld Active Member Licensed User Longtime User Apr 22, 2017 #4 Never mind... I am an idiot. I forgot to initialize STORAGE... Sigh... I need more coffee..... Upvote 0