From your server request to the the link below to send the notification with some request parameters
https://fcm.googleapis.com/fcm/send
While requesting add headers as follows
Authorization key=<Your_key_from_the_console>
Content-Type application/json
The body of the request v...
At first initilize the firebase sdk and admin SDK
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp({
credential: admin.credential.cert({
//your admin credential certificate generated from the console. Follow this [link][1]...