Is that possible to play default notification sound of a device (for both android and ios) in flutter?
I tried SystemSound.play(SystemSoundType.click);
, it doesn't do anything. thanks.
You can use the flutter_ringtone_player plugin to play the default notification sound for both Android and iOS platforms as follows:
FlutterRingtonePlayer.playNotification();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With