OVERVIEW
Firebase is a mobile development platform with tools to improve your app. To use any of their tools, you need to have the Firebase Platform configured. To do so, this requires building your app with the Firebase configuration file (JSON for Android, plist for iOS) included in the compile.
Support:
Applicaster supports Firebase Analytics from the following Zapp SDKs:
- Android 4.6.18 and up
- iOS 4.2.9 and up
To enable Firebase tools, make sure to upload the proper Configuration File (JSON for Android, and Plist for iOS).
This document outlines how to do so. In case different versions might want to work with different Firebase accounts, we support handling this on the App Version level.
Preconditions
You must have the configuration files for a valid Firebase project for each platform.
If you do not have a Firebase project, you can set one up and get the configuration file here (for Android) and here (for iOS). Make sure to start at the part of the documentation titled “Manually add Firebase” (for Android) or “Add Firebase to your app” (for iOS) and follow through to step 4 in order to download the file for both platforms. You can ignore step 5 in the manual walkthrough. Once you download the config file, you can hit the link at the bottom which states Skip to the console.
Note that once you’ve set this up for one app, you don’t need to create a new project for the second app. For example, if you’ve set this up for Android, you can just add the iOS app within the same project:
If you already have a Firebase project setup and your apps assigned, then all you need are configuration files and you can follow the directions HERE to in order to download them.
CONFIGURATION JSON File (Android) / Plist File (iOS):
On the next screen -"Download config file" - you will get the Json/Plist file to add to your app in Zapp.
Here are the instructions from Google on how to obtain the Configuration JSON/Plist files:
https://support.google.com/firebase/answer/7015592
Get a config file for your iOS app
To download a config file for an iOS app:
- Sign in to Firebase and open your project.
- Click
and select Project settings.
- In the Your apps card, select the bundle ID of the app you need a config file for from the list.
- Click
GoogleService-Info.plist.
Get a config file for your Android app
To download a config file for an Android app:
- Sign in to Firebase and open your project.
- Click
and select Project settings.
- In the Your apps card, select the package name of the app you need a config file for from the list.
- Click
google-services.json.
--> Click HERE to learn how to create a Google API Key for Firebase Cloud Messaging.
STEPS for setting up Firebase in Zapp
Android -
- Find your app in the apps page in Zapp
- Click on the main area:
- Click on the configure icon for the app version you aim to configure:
- Then click General
- Scroll down to “Firebase Configuration” and click on Select File.
- Upload the file
- Be sure to scroll to the bottom of the page and hit “Save”
Once you hit “Save”, the json or plist file will appear in the "Firebase Configuration" field.
That’s it. Now you can use Firebase and any of the associated services that Applicaster supports. Enjoy!
iOS -
- Find your app in the apps page in Zapp
- Click on the main area:
- Click on the configure icon for the app version you aim to configure:
- Click on "plugin configurations" from the dropdown menu:
- Search for the "Firebase Base Configuration" plugin and add it to your build:
- Locate your plugin under the "Installed Plugins" tab, and click on it:
- Upload your Plist configuration File from Firebase (one for Production and one for a Debug/Enterprise build, if relevant). Then, click on "Save".
* Don't forget to create a new build (for both iOS and Android) for the changes to take place!
Comments
0 comments
Please sign in to leave a comment.