Skip to content

This source code demonstrate how to send firebase cloud messaging notification using firebase functions on document changes in firebase firestore.

Notifications You must be signed in to change notification settings

abhidiwakar/firebasecloudmessaging_using_firebasefunctions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase cloud messaging with Firebase functions

This source code demonstrates how to send firebase cloud messaging notification using firebase functions on document changes in the firebase firestore.

Important

Give this repository a star if you find it useful :)

Usage

Step1: Clone this repository using the following command.

git clone https://github.com/abhidiwakar/firebasecloudmessaging_using_firebasefunctions.git

Step2: Start using the functions or modify them as per your need.

Inside

This repository contains two functions two firebase functions.

  1. sendNotificationToTopic
  2. sendNotificationToFCMToken

1st function is used to send firebase cloud messaging notification to users subscribed to a topic.

2nd function is used to send firebase cloud messaging notification to a single user using FCM Token.

Tutorial on YouTube

Part 1: Sending push notification on changes in firestore using firebase functions : Topic

Part 1

Part 2: Sending push notification on changes in firestore using firebase functions : FCM Token

Part 2

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Social Links

Instagram

About

This source code demonstrate how to send firebase cloud messaging notification using firebase functions on document changes in firebase firestore.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published