Firebase SDK Integration into Pugpig Apps
Table of Contents
Pugpig can integrate the Firebase SDK into its apps. Currently Firebase Push and/or Firebase Analytics can be applied in your app.
Creating the Addons
Both Firebase Push and Firebase Analytics have their own addons to configure into your app. If you do not see these addons underneath the Push Notifications and Analytics sections respectively then please ask Pugpig support to create the addon which you wish to integrate into the app.
Creating the Firebase Project
A Firebase Project need to be setup in the Firebase Console, distribution will then connect to this via the API to fetch app configuration data, and optionally sent automated pushes.
If you have already setup an existing Firebase Account and Project then we can integrate into this. Otherwise please follow the steps from Google to setup the Firebase Project.
Setting up the Google Cloud project
The basic setup of a Firebase Account and Project using the link above will automatically create a Google Cloud Account and Associated Project for this app. However if you have an existing Google Cloud Account/Project and want to setup the Firebase Project with this, then please follow the documentation provided by Google.
When the Google Cloud Project is linked to the Firebase Project, Firebase will automatically create and manage its own Service Account. So all Pugpig needs is the Service Account Key. This can be made by navigating to Project Settings > Service Accounts > Generate Private Key.

Securely transferring the key to Pugpig
Once the new JSON Service Account Key is created and download it to your computer, please send this to Pugpig support securely. Ensure that you do not insecury transmit or make public the contents of the file - otherwise it cannot be used and a new key must be created.
Configuring Firebase Automated Push
Firebase Automated Push requires the Firebase Cloud Messaging API be enabled for the project. Often on newer projects it is enabled by default, however if you navigate to Project Settings > Cloud Messaging > Firebase Cloud Messaging API and see that the status is Disabled then you will need to enable the API which you should be able to do on this page.