flutter_media_notification
flutter_media_notification copied to clipboard
Media notification not disposing
The media dispose notification keeps alive even when hiding it on dispose, and when interacting with it after closing the app, it says "[app_name] has stopped":
@override
void dispose() {
hide();
super.dispose();
}
Future<void> hide() async {
try {
await MediaNotification.hide();
setState(() => status = 'hidden');
} catch(e) {
print(e);
}
}
Plugin not supported. But you can use another plugin: https://pub.dartlang.org/packages/background_audio. It is created for background music playback. It has a "close" button on the notification
Does it automatically disappear when you close the app?
Sorry, no