Now, let's discuss the code that what we just wrote:
- The preceding code can be put everywhere, which means that you can send push notifications in every part of your application.
- We're composing our notification message by putting the registration token and the information we want to send.
- We're using the fcm.send() method in order to send our notification to the wanted users.
Congratulations! We're done; now go and test your awesome new functionality!