Adding push notifications
Push notifications are messages that are sent to a user’s device from a server, even when the user is not actively using the app. These messages appear as system notifications outside of the app and can be used to provide updates, alerts, or other relevant information to users.
To send push notifications, we need to decide which of the available options we want to use. The most popular is Firebase Cloud Messaging (FCM), but there are more push notification services such as OneSignal, Pusher, or Amazon Simple Notification Service (SNS). In our case, we are going to take the popular route and use FCM.
Firebase is a mobile and web application development platform provided by Google. It offers a suite of tools, services, and infrastructure designed to help developers build, improve, and grow their apps. Some of its features include authentication, push notifications, cloud databases, and so on. We are going to use it for the last two sections of this...