iOS Tutorial Firebase Integration

Erel

Administrator
Staff member
Licensed User
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).

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. Unzip the frameworks on the Mac directly. Otherwise they might be corrupted.
 

Attachments

Last edited:

Erel

Administrator
Staff member
Licensed 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.
 

Erel

Administrator
Staff member
Licensed User
Please start a new thread for this in the questions forum.
 

aeric

Active Member
Licensed 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

Erel

Administrator
Staff member
Licensed User
1) Directly to the Libs folder.

2) Yes. I don't remember the exact details but it is probably a newer version.
 
Top