skip to Main Content

Javascript – FCM message being receive from Firebase messaging but not from the cloud function

I am using a cloud functions to send a fcm message to the admins phone every time the bookings collection has a new document here: const functions = require("firebase-functions"); const admin = require("firebase-admin"); admin.initializeApp(); exports.sendBookingNotification = functions.firestore .document("bookings/{bookingId}") .onCreate(async (snapshot,…

VIEW QUESTION
Back To Top
Search