Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media notification not disposing #2

Open
marianoarga opened this issue Oct 11, 2018 · 3 comments
Open

Media notification not disposing #2

marianoarga opened this issue Oct 11, 2018 · 3 comments

Comments

@marianoarga
Copy link

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);
    }
  }
@N9vn1njdf
Copy link
Owner

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

@marianoarga
Copy link
Author

Does it automatically disappear when you close the app?

@N9vn1njdf
Copy link
Owner

Sorry, no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants