-
Notifications
You must be signed in to change notification settings - Fork 844
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
Bug when App gets closed on Android #144
Comments
Hey, this errors message seems odd, we will take a look on it. But be aware that handling application going to background, and back to foreground is not handled but the plugin, it must be handled but the application who uses it. Thanks. |
Maybe it is a bug from flutter itself. Maybe it's worth to write a issue there @erickzanardo |
I am having the same problem. It only happens in Android. I am trying to use |
@Butzlabben have you found a solution? |
No @letiagoalves |
has someone found a quick fix for this yet? |
I have found a workaround, I am now stopping the audio playback when the app gets closed this way. You will need the
|
@Butzlabben and how do you handle the app being destroyed by sliding it from the OPEN APPS view? |
I'm suffering from the same Problem. When using the "back" button the app seems to be completely unloaded - even final static references are removed. When it is resumed, the audio player reference is a new one. (Pressing play will actually play two tracks simulaniously.) |
You will need the backbutton interceptor as shown in my workaround. |
3Q~ you save my time! |
Like discussed on the issue, handling this is the responsibility of the app using the plugin, and not the plugin itself |
Hi there,
there is a big bug in this plugin, even reproducible in the example.
When something is playing and you close the app via the back button on Android, the audio is still playing and in the console, this message gets spammed:
D/FlutterNativeView(
5601): FlutterView.send called on a detached view, channel=xyz.luan/audioplayers`When I open the app again, the audio still plays but on the dart side, there isn't anything playing. The dart side of the plugin is detached.
This is a critical bug. The iOS implementation seems to be good.
With kind regards,
Daniel
The text was updated successfully, but these errors were encountered: