iOS Tutorial Firebase Integration

Discussion in 'iOS Tutorials' started by Erel, Jul 4, 2016.

  1. Erel

    Erel Administrator Staff Member Licensed User

    B4i v2.80 (currently in beta) adds support for Firebase backend: https://firebase.google.com

    The libraries are mostly the same as the B4A Firebase libraries.

    Configuration

    1. Create an iOS application in Firebase console. Make sure that the bundle id is the same as your app package name.
    2. Download GoogleService-info.plist from the console and copy it to Files\Special.
    3. Declare a process global FirebaseAnalytics object and initialize it in Application_Start. FirebaseAnalytics is the base of all Firebase services. The analytics object should be initialized before any other Firebase object (even if you don't need the analytics service).

    The following services are currently supported:

    FirebaseAnalytics, FirebaseAuth (Google + Facebook), FirebaseStorage and FirebaseNotifications (push messages).

    If you are using a local Mac then you should download Firebase frameworks and copy them to the Libs folder: www.b4x.com/b4i/files/FirebaseFrameworks.zip (100mb).
     
    Last edited: Jul 4, 2016
    luke2012 and valentino s like this.
  2. sorex

    sorex Expert Licensed User

    Excellent!

    Will there be a seperate Firebase Banner lib aswell like in B4A?
     
  3. aaronk

    aaronk Well-Known Member Licensed User

    Does this mean my app is now going to increase by 100mb if I use the Firebase framework?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    No. There is no iOS Firebase AdMob SDK. It is the same as the current one.

    No. It will add about 1mb - 2mb to the app size. Nothing to be bothered about.
     
  5. aaronk

    aaronk Well-Known Member Licensed User

    Perfect.
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread for this in the questions forum.
     
Loading...