explaingit

firebase/quickstart-android

9,273KotlinAudience · developerComplexity · 3/5Setup · moderate

TLDR

A collection of standalone Android app samples from Google's Firebase team, each showing exactly how to integrate one Firebase service, authentication, databases, push notifications, crash reporting, and more.

Mindmap

mindmap
  root((repo))
    What It Does
      Firebase code samples
      Working Android apps
      One service per sample
    Firebase Services
      Authentication
      Firestore database
      Cloud Messaging
      Crashlytics
    Setup
      Android Studio
      Firebase console
      Config file download
    Use Cases
      Learn Firebase APIs
      Copy starter code
      Test before integrating
    Audience
      Android developers
      Mobile engineers
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Run the authentication sample to see how Firebase login with email, Google, or phone works in a real Android app before building your own.

USE CASE 2

Copy the Firestore sample as a starting point for adding a real-time database to an existing Android project.

USE CASE 3

Use the Cloud Messaging sample to test push notification delivery on a real device before wiring up your own notification system.

USE CASE 4

Reference the Crashlytics sample to understand how to add crash reporting to an Android app.

Tech stack

KotlinAndroidFirebaseAndroid Studio

Getting it running

Difficulty · moderate Time to first run · 30min

Each sample requires creating a Firebase project in the Firebase console and downloading a google-services.json config file into the app directory.

License not mentioned in the explanation.

In plain English

This repository is a collection of sample Android apps published by Google's Firebase team. Each sample demonstrates how to use a specific Firebase service in an Android application. Firebase is a platform from Google that provides backend services for mobile and web apps, such as databases, authentication, file storage, crash reporting, push notifications, and analytics. The samples cover a wide range of Firebase products. There are examples for authentication (logging users in), Realtime Database and Firestore (two types of database), Cloud Storage (storing files), Cloud Messaging (push notifications), Analytics, Crashlytics (crash reporting), Remote Config (changing app behavior without releasing an update), Performance Monitoring, In-App Messaging, App Distribution, Cloud Functions, AdMob, and Data Connect, among others. Each sample is a standalone Android Studio project. To run one, you open it in Android Studio, create a Firebase project in the Firebase console, register the sample app within that project, and download the configuration file the console generates. You place that file in the sample's app directory and then run the app on a real Android device or an emulator. Multiple samples can be registered under the same Firebase project, so you do not need to create a new project for each one. This repository is maintained by the Firebase team and is primarily aimed at Android developers who want to see working code for each Firebase API before integrating it into their own applications. The README is brief and most of the documentation lives within each individual sample's own README file.

Copy-paste prompts

Prompt 1
Show me how to set up and run the Firebase Authentication quickstart sample on Android in Android Studio from scratch.
Prompt 2
Walk me through registering the Firestore quickstart-android app in the Firebase console and placing the google-services.json file correctly.
Prompt 3
How do I send a test push notification using the Firebase Cloud Messaging quickstart-android sample on a real device?
Prompt 4
I want to add Firebase Analytics to my Android app, show me the relevant setup code from the quickstart-android Analytics sample.
Prompt 5
Can I register multiple quickstart-android samples under a single Firebase project and how do I configure them to coexist?
Open on GitHub → Explain another repo

← firebase on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.