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

 

About the author 

Matt Rešetár

Matt is an app developer with a knack for teaching others. Working as a Flutter freelancer and most importantly developer educator, he doesn't have a lot of free time 😅 Yet he still manages to squeeze in tough workouts 💪 and guitar 🎸

You may also like

Flutter Custom & Staggered Page Transition Animation Tutorial

Flutter Firebase & DDD Course [5] – Sign-In Form Logic

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
>