Firebase Cloud Messaging (FCM), formerly known as Google Cloud Messaging, is a revised version of the cross-platform messaging solution that empowers you to send notifications at no cost. In the app, these services will be used to notify users such as in the case of new offers or comments on restaurants feedback. Firebase inherits GCM's core infrastructure but it simplifies client-side development.
In Google Cloud Messaging, developers had to write their own registration or subscription retry logic, which now gets ruled out. Simply by writing a few lines of code, FCM can be integrated into the app. It contains a server that is responsible for assigning an identifier token to each device that is subscribed to send and receive notifications. This also ensures that messages are sent and received by a particular device.
The following process takes place...