I have a Future which call a Ringtone with this dependency
Future<void> getRing()async {
FlutterRingTonePlayer.playAlarm();
}
I want to trigger the method getRing when a new document is created into my collection and add a new item in the list.
How I can achieve that without creating a firebase function?