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
Packt Upsell
Application Usage Measuring and Notification, Firebase Analytics, and Cloud Messaging
Bringing Everyone on the Same Page, Firebase Invites, and Firebase App Indexing
Making a Monetary Impact and Firebase AdMob and AdWords
Flexible NoSQL and Cloud Firestore
Analytics Data, Clairvoyant, Firebase Predictions

Cloud Firestore

Firestore has already created a great buzz in the developer community, and adjectives such as adaptable, versatile, and scalable are already a brilliant way of describing Firestore. Though it is still in a beta state, Firestore has proven a lot and developers have started to use this tool in production builds. 

So, what makes Firestore stand out compared to Realtime Database? Well, Firestore is a document database, whereas Realtime Database is NoSQL. Firestore offers better querying and more structured data. Realtime Database is a JSON hashmap tree. Firestore is more structured and all user data consists of documents (which are basically key-value pairs) and collections (list of documents). Documents can point to a subcollection that holds other documents. Designed to scale, Firestore offers better scaling than Realtime Database. Firestore will perform faster, even with large datasets. Easier manual fetching of data similar to real-time database, Firestore offers to fetch...