playNativeNotification method
dynamic
playNativeNotification()
function for playing audio notification
Implementation
playNativeNotification() async {
await FlutterRingtonePlayer.play(
android: AndroidSounds.ringtone,
ios: IosSounds.sentMessage,
looping: false,
// Android only - API >= 28
volume: 0.1,
// Android only - API >= 28
asAlarm: false, // Android only - all APIs
);
}