Judy T Raj Judy T Raj - 1 month ago 8
Android Question

Is it possible to send push notifications using FCM when a change occurs in firebase database without using the console or a 3rd party server?

I'm writing an android app which uses firebase database as backend. I need to push notify a particular device when a field in the database gets updated. I've been searching and found examples to do it using php, other servers or the firebase console. Do I really need to get another server?

Answer Source

Updated on 2017-07-02

Since March 2017 Firebase offers Cloud Functions for Firebase, which allows you to run JavaScript functions on Google's servers in response to events in Firebase (such as a database update). The first sample use-case is Notify users (using Cloud Messaging) when something interesting happens, so I recommend reading more about it.