You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which API doesn't behave as documented, and how does it misbehave?
When using the notification pause button on Android the music stops after few minutes and app is getting crashed/closed automatically but this is not happening in all the devices (perfectly working in Samsung M12 - Android 13, moto e13 - Android 13).
Minimal reproduction project
Provide a link here using one of two options:
The example
To Reproduce (i.e. user steps, not code)
Steps to reproduce the behavior:
Launch the app
Click Play
Open the notification shade
Click Pause on the notification
App is getting crashed/closed automatically
Error messages
E/AndroidRuntime(28901): android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{729c672 u0 com.example.audio_demo/com.dooboolab.TauEngine.FlautoBackgroundAudioService}
E/AndroidRuntime(28901): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2126)
E/AndroidRuntime(28901): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(28901): at android.os.Looper.loop(Looper.java:236)
E/AndroidRuntime(28901): at android.app.ActivityThread.main(ActivityThread.java:8057)
E/AndroidRuntime(28901): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(28901): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:620)
E/AndroidRuntime(28901): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1011)
I/Process (28901): Sending signal. PID: 28901 SIG: 9
Lost connection to device.
Expected behavior
Music must stop.
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Device: Redmi note 8 pro
OS: Android 11
Device: Redmi 9i
OS: Android 10
Device: Tecno LE6
OS: Android 11
Flutter SDK version
[√] Flutter (Channel stable, 3.7.7, on Microsoft Windows [Version 10.0.22621.1555], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2022.1)
[√] VS Code (version 1.77.3)
[√] Connected device (4 available)
[√] HTTP Host Availability
As you can see, startForeground is called unconditionally following every call to startForegroundService unless some OTHER exception is occurring between the first and the second call. Since you didn't report any other exception happening between those two calls, I suspect there is something inconsistent with your report. Maybe either you are not using "the example" or maybe the reproduction steps are not exactly accurate?
Just looking at the error message, it seems to be reporting an error in a different audio plugin (com.dooboolab.TauEngine.FlautoBackgroundAudioService). Please report the bug to that project.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with just_audio.
Which API doesn't behave as documented, and how does it misbehave?
When using the notification pause button on Android the music stops after few minutes and app is getting crashed/closed automatically but this is not happening in all the devices (perfectly working in Samsung M12 - Android 13, moto e13 - Android 13).
Minimal reproduction project
Provide a link here using one of two options:
The example
To Reproduce (i.e. user steps, not code)
Steps to reproduce the behavior:
Error messages
Expected behavior
Music must stop.
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Device: Redmi note 8 pro
OS: Android 11
Device: Redmi 9i
OS: Android 10
Device: Tecno LE6
OS: Android 11
Flutter SDK version
Additional context
AndroidManifest.xml
The text was updated successfully, but these errors were encountered: