Paynoramic launches Marengo, a white-label crypto exchange you can try before you buy.Meet Marengo, our white-label exchange. See the exchange.

Connector · Sign-in, push, analytics and crash reports

Firebase, from sign-in to crash reports.

How three of our modules use Firebase: Firebase Authentication to sign customers in, Cloud Messaging to reach their phones, Google Analytics and Crashlytics to show how the apps are used and where they fail, and how we set them up.

Website
firebase.google.com
Modules
Authentication, Notifications, Analytics & monitoring
SDKs
Web, iOS, Android, Flutter
Access
Your Firebase project
Checked

What Firebase is

Firebase is Google's platform for building mobile and web apps, part of Google since 2014. Four of its products matter here. Firebase Authentication signs users in with email and password, phone numbers or accounts such as Google, Apple and Microsoft. Firebase Cloud Messaging delivers notifications and data messages to Android, Apple devices and the web. Google Analytics for Firebase measures how people use an app, from events it records on its own and up to 500 kinds of event the app logs. Firebase Crashlytics reports an app's crashes and errors, grouped into issues with the stack traces behind them.

All four have official Flutter plugins that Firebase publishes itself, and Flutter is the toolkit our mobile apps are built with. That is why Firebase is one of the identity providers of our authentication module, one of the push providers of our notifications module, and both a product analytics and a crash reporting connector of our analytics and monitoring module.

What it does in your platform

  • Authentication

    Signs customers in with Firebase Authentication: email and password, phone numbers, or Google, Apple and Microsoft accounts. The module verifies Firebase's ID tokens on the server and adds its own trusted devices, sessions and the second factor on payments.

  • Notifications

    Delivers push notifications to your customers' phones through Firebase Cloud Messaging: deposit receipts, security alerts and withdrawal updates, from templates your team edits in the backoffice. On iPhones, Firebase hands each message to Apple's push service.

  • Analytics & monitoring

    Measures how customers use your apps with Google Analytics for Firebase, once they agree to analytics: screens and taps on your tracking plan come from the apps, and payments and other money events from the platform's server, so they match the ledger. Firebase Crashlytics reports crashes and errors from the mobile apps with the stack trace, device and app version, grouped into issues and tracked as crash-free users and sessions.

How the connection works

The apps use Firebase's official Flutter plugins: firebase_auth, firebase_messaging, firebase_analytics and firebase_crashlytics. On the server, the platform verifies sign-in tokens with Firebase's Admin SDK, sends push through the FCM HTTP v1 API, authorised with short-lived OAuth 2.0 access tokens, and sends money events to Google Analytics through its Measurement Protocol.

  1. A customer signs in

    Firebase Authentication signs them in with the methods you enabled. The platform checks the ID token's signature, audience and expiry against Google's public keys, opens its own session and stores the phone's Cloud Messaging registration token.

  2. They choose what to share

    Analytics stays off in the app until the customer agrees to it. The app then switches collection on, passes their choices to Google's consent mode and identifies them by a random platform ID, never a name or an email address.

  3. Screens and taps are recorded

    Analytics records its automatic events, such as the first open and each session, and the screens and taps on your tracking plan. The plan lists the automatic events too, so your team reviews everything that is sent.

  4. A payment goes through

    The platform's server sends the payment event to Analytics with the app's instance ID, so the figures match the ledger. The receipt reaches the phone through FCM, by way of Apple's push service on iPhones.

  5. The app hits an error

    The app's Flutter error handlers strip personal data from it and send it to Crashlytics with the stack trace, device, app version and platform ID.

  6. Your team hears about it

    Crashlytics groups the report into an issue, readable thanks to the symbol files uploaded with each release, and shows the screens viewed before it for customers who agreed to analytics. New, regressed and growing issues alert your team by email, Slack, Jira or PagerDuty.

Next to other providers

In the authentication module, Firebase Authentication can sign in your customers while staff use your company directory. In the notifications module, Firebase Cloud Messaging sits next to Apple Push Notification service and OneSignal, with a second provider or channel standing by for critical messages such as one-time codes.

In the analytics and monitoring module, Google Analytics sits next to Mixpanel, Amplitude and PostHog. Crashlytics covers Apple, Android and Flutter apps, while Sentry, another of the module's monitoring connectors, also covers web apps and servers. Because the platform verifies tokens and keeps sessions, consent choices and the tracking plan itself, moving any of the four to another provider later changes a connector, not your apps' screens or your customers' choices.

When Firebase fits best

A strong fit when

  • Your apps already use Firebase, or you want sign-in, push, analytics and crash reports from one Google project, with official Flutter plugins for each.
  • You want phone-number and social sign-in without running an identity server.
  • Your analysts work in BigQuery, where Analytics and Crashlytics data can be exported every day.

Also worth a look

  • AWS Cognito or Auth0 for sign-in, and OneSignal or Apple's push service directly for push.
  • Mixpanel or Amplitude for product analytics, and Sentry for errors from your web apps and servers as well as the mobile apps.

How we get you live

  • The Firebase project

    We set up the Firebase project your apps will use in your Google account, or connect the one you already have, link it to Google Analytics, enable the sign-in methods you want and upload your Apple push key so Firebase can reach iPhones.

  • The data

    We agree the tracking plan with your team, set how long Analytics keeps user-level data, and check that Google's data processing terms are accepted for each product. If you export Analytics or Crashlytics data to BigQuery, the dataset can sit in the EU.

  • The keys

    The service account credentials and the Measurement Protocol API secret go into your platform's secrets and nowhere else. The apps only carry Firebase's public configuration.

  • A full test run

    In a separate test project, we test sign-in, a push for every kind of message, each event on the tracking plan and a forced test crash with readable stack traces, before your first real customer.

Questions

Asked about this connector.

How do we get started with Firebase?

Talk to us. We set up sign-in, push, Google Analytics and Crashlytics in your Firebase project with you, agree the tracking plan with your team, and test everything in a separate project before your first real customer.

Can we use some Firebase products and not others?

Yes. Each one is a separate connector. You can send push through Firebase Cloud Messaging and sign customers in with another provider, or report crashes to Crashlytics and measure usage with Mixpanel or Amplitude. Crashlytics works without Google Analytics, though its breadcrumb logs of the screens before a crash need it.

How do push notifications reach iPhones?

Firebase Cloud Messaging hands them to Apple's push service, using the Apple push key we upload to your Firebase project. The app registers with Firebase the same way on both platforms.

Does Google Analytics wait for the customer's consent?

Yes. Analytics collection is off in the apps until the customer agrees to analytics. The app then switches it on and passes the choice to Google's consent mode, with ad storage, ad user data and ad personalisation denied unless the customer agreed to advertising as well. Crashlytics also offers opt-in reporting, for teams that want crash reports to wait for consent too; Firebase notes that crash-free figures then reflect only the customers who agreed.

What happens to analytics and crash data when a customer asks to be forgotten?

The platform stops sending and asks Google Analytics to delete the customer's data through the Google Analytics Admin API, by their platform ID. Crashlytics keeps crash reports for 90 days before it starts removing them, and for records tied to one customer's ID, Firebase's route is a request to Firebase support.

Where does Firebase process our customers' data?

Firebase Authentication runs only in Google's US data centres, and Cloud Messaging and Crashlytics on Google's global infrastructure; all three have completed ISO 27001 and SOC 1, 2 and 3 evaluations. Google Analytics, a separate Google service with its own terms, collects data from EU devices on servers in the EU and does not log their IP addresses. Google processes the data on your behalf under its data processing terms, and Analytics and Crashlytics never receive a customer's name, email or account number.

Start your project

Tell us the idea. We'll show you the platform.

One call is enough to map your product to the modules that already exist.

  • Response in under one business day
  • NDA on request
  • No obligation
How can we help?