Book Image

Mastering Firebase for Android Development

By : Ashok Kumar S
Book Image

Mastering Firebase for Android Development

By: Ashok Kumar S

Overview of this book

Firebase offers a wide spectrum of tools and services to help you develop high-quality apps in a short period of time. It also allows you to build web and mobile apps quickly without managing the infrastructure.Mastering Firebase for Android Development takes you through the complete toolchain of Firebase,including the latest tools announced in Google IO 2018 such as Firebase ML-Kit, FireStore, and Firebase Predictions. The book begins by teaching you to configure your development environment with Firebase and set up a different structure for a Firebase real-time database. As you make your way through the chapters, you’ll establish the authentication feature in Android and explore email and phone authentication for managing the on-boarding of users. You’ll be taken through topics on Firebase crash reporting, Firebase functions, Firebase Cloud, Firebase Hosting, and Cloud Messaging for push notifications and explore other key areas in depth. In the concluding chapters, you will learn to use Firebase Test Lab to test your application before using Firebase Performance Monitoring to trace performance setbacks. By the end of the book, you will be well equipped with the Firebase ecosystem, which will help you find solutions to your common application development challenges.
Table of Contents (23 chapters)
Title Page
Copyright and Credits
Dedication
Packt Upsell
Contributors
Preface
9
Application Usage Measuring and Notification, Firebase Analytics, and Cloud Messaging
11
Bringing Everyone on the Same Page, Firebase Invites, and Firebase App Indexing
12
Making a Monetary Impact and Firebase AdMob and AdWords
13
Flexible NoSQL and Cloud Firestore
14
Analytics Data, Clairvoyant, Firebase Predictions
Index

FirebaseUI Email Authentication


Email ID is a unique user identity that helps in sending and routing emails and notifications to users. So far, we have learned what authentication is. In this section, we will explore it with the help of working code. We will use the FirebaseUI Auth API, in which we will extend the concepts to apprehend in social login, phone number verification, and so on.

Configuring for Email Authentication

The following steps illustrate what necessary actions are to be taken to integrate the Firebase Authentication:

  1. Create a new project with Empty Activity as the preferred template. In this project, we will explore social site integration and other authentication services. It is recommended you use the latest version of Android Studio and dependencies:
  1. After successful project creation, go to Tools | Firebase within Android Studio and select Authentication on the right-hand-side of the assistant panel window. 
  2. In the Assistant window, click on Connect to Firebase. If you...