Push Notification based on Firebase update


I currently have an application that uses IONIC 2 with Firebase.

I have one main collection and was wondering if it would be possible to send a push notification to all users (somehow) when something is added to the Firebase collection.

I’m not sure how I would go about this or even know if this is possible.


Just an idea:
Write a server side script that monitors the collection, send push notification if changes are detected.

like this ? : Sending FCM Push using Cloud Functions for Firebase