Action when an item is added to Firebase

Hi!

I would like to make my phone vibrate when an item is added to a Firebase-list.

I have made an app and uses the native vibration to make the phone vibrate and is “connected” to Firebase.
import { Vibration } from ‘@ionic-native/vibration’;
import { AngularFire, FirebaseListObservable } from ‘angularfire2’;

But how can I trigger a function when an item is added to a Firebase-list? Any suggestions?

Regards, Patrik

You could just watch for changes and broadcast an event when a change occurs. Or keep a local count of items in a list, whenever the number of items in the list change invoke the Vibration? Doesn’t firebase support some kind of event broadcasting when an item is pushed to a list?