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
CustomMediaButtonReceiver.onReceive #803
Comments
Hi, I'm getting the same problem 3.1.1 update is related to this error? |
|
Version 3.0.6 does not have this problem. When I updated to version 3.1.0, I started to get this problem. |
Also seeing this 'ForegroundServiceDidNotStartInTimeException' issue:
|
any updates? |
My update is 'sideways' - try the 'just_audio' package instead. That's not to say this is a bad package, but 'just_audio' worked for our particular simple requirements, with minimal code changes. |
So I had to use another package. audioplayers this package sees it. |
I did a PR which was already merged into
|
@vbuberen Can you please share version so update version accordingly |
Flutter Version
Flutter version : 3.13.1
Lib Version
Assets Audio Player version : 3.1.0
Platform (Android / iOS / web) + version
Platform : Android
Describe the bug
CustomMediaButtonReceiver.onReceive
Fatal Exception: android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException
Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{b4ae231 u0 com.goodvibes/com.github.florent37.assets_audio_player.notification.NotificationService}
Stack trace:
Fatal Exception: android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{b4ae231 u0 com.goodvibes/com.github.florent37.assets_audio_player.notification.NotificationService}
at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2245)
at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2216)
at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException()
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2508)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8757)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
The text was updated successfully, but these errors were encountered: