Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Triggers on Firebase for Push Notifications

Tags:

Are there any triggers on Firebase database like in MySQL which I can use to automate push notification? I need to avoid manual push notification from Firebase console. Any Ideas?

like image 485
Ally Makongo Avatar asked Jul 22 '17 08:07

Ally Makongo


People also ask

How do I trigger push notifications?

Click on the + Add Action. On the right side, search and select the Trigger Push Notification action. To set who should receive the push notification, set the Audience to Single Recipient or Multiple Recipient.

Can you send push notifications with Firebase?

Firebase Cloud Messaging (FCM) provides a reliable and battery-efficient connection between your server and devices that allows you to deliver and receive messages and notifications on iOS, Android, and the web at no cost.


1 Answers

Look into Cloud Functions for Firebase. It offers database triggers which can respond to changes to your database at the location you specify.

There is sample code that demonstrates how to send a notification in response to a changes to a database.

like image 72
Doug Stevenson Avatar answered Sep 30 '22 01:09

Doug Stevenson