Run the authentication sample to see how Firebase login with email, Google, or phone works in a real Android app before building your own.
Copy the Firestore sample as a starting point for adding a real-time database to an existing Android project.
Use the Cloud Messaging sample to test push notification delivery on a real device before wiring up your own notification system.
Reference the Crashlytics sample to understand how to add crash reporting to an Android app.
Each sample requires creating a Firebase project in the Firebase console and downloading a google-services.json config file into the app directory.
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.
← firebase on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.