Zooshi
An open source project by FPL.
 All Pages
Firebase

Introduction

This document outlines how the Firebase C++ SDK is used in Zooshi. For additional samples on how to integrate Firebase, be sure to check out Firebase Samples.

Overview

Firebase makes it easy to add backend services and analytics to your mobile games on iOS and Android. With the Firebase C++ SDK, you can access Firebase services directly in your C++ code, without having to write any Java or Swift (or Objective-C) code.

AdMob

Firebase AdMob is used to offer Rewarded Video ads to the user, in exchange for bonus XP granted upon playing the level. The relevant code can be found in (admob.h/.cpp).

Analytics

Firebase Analytics is used to collect analytics from various events, such as when a level is started, or when a patron is fed. The relevant code can be found in (analytics.h/.cpp).

Cloud Messaging

Firebase Cloud Messaging is used to deliver messages to users, which can call users into playing, and can include rewards. The relevant code can be found in (messaging.h/.cpp).

Invites

Firebase Invites lets users invite others to try Zooshi with app referals via email, which gets rewarded with unlockables. The relevant code can be found in (invites.h/.cpp).

Remote Config

Firebase Remote Config is used to allow modification of menu items within Zooshi without needing to push new versions, through the Firebase console. The relevant code can be found in (remote_config.h/.cpp).