All technologies

Apps

Firebase for mobile apps

Firebase gets mobile apps up and running fast: database, functions and push notifications from a single source. We build the backend plus a matching admin portal.

Firebase is a backend platform from Google with a database, functions, authentication and push notifications for mobile and web apps.

Data flow

How Firebase fits into your processes

  1. App
  2. Firestore
  3. Cloud Function
  4. Messaging
  5. Admin portal
A new entry in Firestore triggers a function that sends a push notification and keeps the admin portal up to date.

Use cases

What we build with Firebase

  • Firestore

    Data for apps, synced in real time.

  • Cloud Functions

    Logic in the backend, without your own server.

  • Push notifications

    Notifications on iPhone and Android.

  • Admin portal

    Manage content and users in the browser.

Typical projects

Why companies bring us in

  1. 01

    App with admin portal

    Starting point
    A Flutter app needs a backend, and the team wants to manage content and users in the browser.
    Solution
    We build Firestore, Cloud Functions and an admin portal that accesses the same data.
    Result
    App and portal share one data source, and content can be maintained without developers.
  2. 02

    Push for a chat app

    Starting point
    Users of a chat app miss messages when the app is closed.
    Solution
    A Cloud Function responds to new messages and sends a notification to the device via Firebase Cloud Messaging.
    Result
    New messages reach users even when the app is not open.
  3. 03

    Costs under control

    Starting point
    An existing Firebase app is getting more expensive as usage grows, and nobody knows why.
    Solution
    We review reads, listeners and functions and set up budgets with alerts.
    Result
    Cost drivers are visible, and unnecessary access is shut off.

From practice

Firebase in our projects

  • A Flutter app with Firestore, Cloud Functions and an admin portal.
  • Push notifications of a chat app on Android.

Approach

How we introduce Firebase

  1. 1

    Data model

    Plan collections and permissions.

  2. 2

    Backend

    Set up functions, rules and push.

  3. 3

    App and portal

    Connect the mobile app and admin portal.

  4. 4

    Operations

    Costs, rules and updates in view.

Result

What you get from us

  • Data model for Firestore collections
  • Security rules with automated tests
  • Cloud Functions for logic and notifications
  • Push notifications for iOS and Android
  • Admin portal in the browser
  • Budgets and cost alerts in Google Cloud
import { onDocumentCreated } from "firebase-functions/v2/firestore";
import { initializeApp } from "firebase-admin/app";
import { getMessaging } from "firebase-admin/messaging";

initializeApp();
export const notifyOnMessage = onDocumentCreated(
  { document: "chats/{chatId}/messages/{msgId}", region: "europe-west3" },
  async (event) => {
    const msg = event.data?.data();
    if (!msg) return;
    await getMessaging().send({
      topic: "chat_" + event.params.chatId,
      notification: { title: msg.senderName, body: msg.text },
    });
  }
);
A second-generation Cloud Function sends a push notification for every new chat message.

Quality

What we watch for with Firebase

  1. 1

    Firestore rules

    Open test rules from the launch phase must never go into production.

  2. 2

    Count read operations

    Firestore bills per document read, so we plan queries and listeners economically.

  3. 3

    Data model without joins

    Firestore has no joins, so data is deliberately duplicated and kept consistent.

  4. 4

    Set the region

    The database region cannot be changed later, so it is chosen at the start.

  5. 5

    Emulator for tests

    We test rules and functions locally in the emulator before they go live.

Comparison

Firebase or Custom backend?

Firebase

Database
Firestore, document-based
Push notifications
Built in via Cloud Messaging
Offline in apps
Local cache included in the SDK
Operations
Only as a Google service
Billing
By read and write operations

Custom backend

Database
PostgreSQL, relational with SQL, plus graph, time series or search as needed
Push notifications
Connected via Cloud Messaging
Offline in apps
Custom sync, tailored to the data model
Operations
On servers in Germany, under your control
Billing
Fixed, predictable server costs

Firebase plays to its strengths with fast mobile apps, a custom backend with complex data, permissions and operation in Germany.

Firebase

Common questions

Tap a question.