Firebase Firestore Chat App: FCM Setup (Ep 7) – Kotlin Android Tutorial

Firebase provides a bunch of awesome services such as Firestore, Auth, Cloud Storage, Cloud Functions and Cloud Messaging. Learn how to use them in this tutorial course in which we’re making a fully fledged real-time chat app with everything you’d expect like sending images and getting notifications when we receive a new message.

In this part you will learn how to do the basic setup Firebase Cloud Messaging (FCM) into the Firestore chat app. This will allow us to display a notification to the user when he / she receives an incoming message. FCM uses tokens to navigate between all the different app instances so we will be working with these tokens. We will need to save them to Firestore where each user will be associated with tokens of devices he / she owns.

This post contains all the code that’s been written in this YouTube video.


To get the code check out this GitHub repository:


Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Development made simple

Your success is our success. If you have any questions, let us know.

Copyright 2017 - 2018 Reso Coder © All Rights Reserved