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: https://github.com/ResoCoder/firebase-firestore-chat-app