iOS Tutorial Firebase Integration

B4i v2.80 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).

Latest version: https://www.b4x.com/android/forum/threads/firebase-admob-v3-00.144798/#content

Firebase requires iOS 10+.
 
Last edited:

sorex

Expert
Licensed User
Longtime User
Excellent!

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

Erel

B4X founder
Staff member
Licensed User
Longtime User
Will there be a seperate Firebase Banner lib aswell like in B4A?
No. There is no iOS Firebase AdMob SDK. It is the same as the current one.

Does this mean my app is now going to increase by 100mb if I use the Firebase framework?
No. It will add about 1mb - 2mb to the app size. Nothing to be bothered about.
 

aeric

Expert
Licensed User
Longtime User
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) and the attached GoogleIPhoneUtilities.framework.
1. I need to extract all the files inside the FirebaseFrameworks.zip into Libs folder or extract as a folder name FirebaseFrameworks?

2. Inside FirebaseFrameworks folder already have GoogleIPhoneUtilities.framework but I need to download and copy the attached file to the target folder (overwrite)?
 

Attachments

  • 1.png
    1.png
    354.6 KB · Views: 903
  • 2.png
    2.png
    374.1 KB · Views: 887
Top