flutter_ringtone_player 1.0.0 copy "flutter_ringtone_player: ^1.0.0" to clipboard
flutter_ringtone_player: ^1.0.0 copied to clipboard

outdated

A simple player for system default ringtones, alarms and notifications

flutter_ringtone_player #

A simple ringtone, alarm & notification player plugin.

pub package

Usage #

Add following import to your code:

import 'package:flutter_ringtone_player/flutter_ringtone_player.dart';

Then simply call this to play system default notification sound:

FlutterRingtonePlayer.playNotification();

Methods #

Method Android iOS
playAlarm RingtoneManager.TYPE_ALARM Plays MailReceived sound (new-mail.caf)
playNotification RingtoneManager.TYPE_NOTIFICATION Plays MailReceived sound (new-mail.caf)
playRingtone RingtoneManager.TYPE_RINGTONE Plays MailReceived sound (new-mail.caf)
stop Stop looped sounds No-op

Note on iOS sounds #

On iOS you have to manualy choose sounds to be played. Current plugin defaults are shown above. To change them edit ios/Classes/FlutterRingtonePlayerPlugin.m and replace value for AudioServicesPlaySystemSound().

You can find valid values here:

241
likes
0
pub points
98%
popularity

Publisher

verified publisherinway.dev

A simple player for system default ringtones, alarms and notifications

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_ringtone_player