How to do it...

We're going to start first with Android and see how we can manage this feature:

  1. First, head to your Android Studio project that we created early on in Chapter 1, Firebase - Getting Started. Now that you have opened your project, let's move on to integrating the Realtime Database.
  2. In your project, head to the Menu bar, navigate to Tools | Firebase, and then select Realtime Database. Now click Save and retrieve data. Since we've already connected our Android application to Firebase, let's now add the Firebase Realtime Database dependencies locally by clicking on the Add the Realtime Database to your app button. This will give you a screen that looks like the following screenshot:
 Figure 1: Android Studio  Firebase integration ...

Get Firebase Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.