|
| 1 | +Firebase {#zooshi_guide_firebase} |
| 2 | +=================== |
| 3 | + |
| 4 | +# Introduction {#firebase_introduction} |
| 5 | + |
| 6 | +This document outlines how the [Firebase C++ SDK][] is used in |
| 7 | +[Zooshi][]. For additional samples on how to integrate Firebase, be sure |
| 8 | +to check out [Firebase Samples][]. |
| 9 | + |
| 10 | +# Overview {#firebase_overview} |
| 11 | + |
| 12 | +Firebase makes it easy to add backend services and analytics to your mobile |
| 13 | +games on iOS and Android. With the Firebase C++ SDK, you can access Firebase |
| 14 | +services directly in your C++ code, without having to write any Java or |
| 15 | +Swift (or Objective-C) code. |
| 16 | + |
| 17 | +# AdMob {#firebase_admob} |
| 18 | + |
| 19 | +[Firebase AdMob][] is used to offer [Rewarded Video][] ads to the user, |
| 20 | +in exchange for bonus XP granted upon playing the level. The relevant code can |
| 21 | +be found in (admob.h/.cpp). |
| 22 | + |
| 23 | +# Analytics {#firebase_analytics} |
| 24 | + |
| 25 | +[Firebase Analytics][] is used to collect analytics from various events, such |
| 26 | +as when a level is started, or when a patron is fed. The relevant code can |
| 27 | +be found in (analytics.h/.cpp). |
| 28 | + |
| 29 | +# Cloud Messaging {#firebase_messaging} |
| 30 | + |
| 31 | +[Firebase Cloud Messaging][] is used to deliver messages to users, which can |
| 32 | +call users into playing, and can include rewards. The relevant code can be |
| 33 | +found in (messaging.h/.cpp). |
| 34 | + |
| 35 | +# Invites {#firebase_invites} |
| 36 | + |
| 37 | +[Firebase Invites][] lets users invite others to try Zooshi with app referals |
| 38 | +via email, which gets rewarded with unlockables. The relevant code can be found |
| 39 | +in (invites.h/.cpp). |
| 40 | + |
| 41 | +# Remote Config {#firebase_remote_config} |
| 42 | + |
| 43 | +[Firebase Remote Config][] is used to allow modification of menu items within |
| 44 | +Zooshi without needing to push new versions, through the Firebase console. |
| 45 | +The relevant code can be found in (remote_config.h/.cpp). |
| 46 | + |
| 47 | +<br> |
| 48 | + |
| 49 | + [Zooshi]: @ref zooshi_index |
| 50 | + [Firebase C++ SDK]: https://firebase.google.com/docs/cpp/setup |
| 51 | + [Firebase Samples]: https://firebase.google.com/docs/samples |
| 52 | + [Firebase AdMob]: https://firebase.google.com/docs/admob/cpp/quick-start |
| 53 | + [Rewarded Video]: https://firebase.google.com/docs/admob/cpp/rewarded-video |
| 54 | + [Firebase Analytics]: https://firebase.google.com/docs/analytics/cpp/start |
| 55 | + [Firebase Cloud Messaging]: https://firebase.google.com/docs/cloud-messaging/cpp/client |
| 56 | + [Firebase Invites]: https://firebase.google.com/docs/invites/cpp |
| 57 | + [Firebase Remote Config]: https://firebase.google.com/docs/remote-config/use-config-cpp |
| 58 | + |
0 commit comments