jeromexiong / audio_manager

A flutter plugin for music playback, including notification handling.
MIT License
100 stars 53 forks source link

seekTo is making an error #74

Closed DonAlex1897 closed 2 years ago

DonAlex1897 commented 2 years ago

When I call seekTo method, this error occurs:

W/FlutterJNI(24639): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: audio_manager. Response ID: 0

DonAlex1897 commented 2 years ago

I found the problem. It was happening because I had used a Workmanager in main.dart and I had set the existingWorkPolicy: ExistingWorkPolicy.replace property in its registerPeriodicTask method.