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

ForegroundServiceStartNotAllowedException #801

Open
Sanam-Gurung opened this issue Aug 31, 2023 · 3 comments
Open

ForegroundServiceStartNotAllowedException #801

Sanam-Gurung opened this issue Aug 31, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Sanam-Gurung
Copy link

Flutter 3.13.1
Assets audio Player : 3.1.0

Platform (Android / iOS / web) + version

Platform : Android

Fatal Exception: android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service com.goodvibes/com.github.florent37.assets_audio_player.notification.NotificationService
at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)
at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)
at android.os.Parcel.readParcelable(Parcel.java:3334)
at android.os.Parcel.createExceptionOrNull(Parcel.java:2421)
at android.os.Parcel.createException(Parcel.java:2410)
at android.os.Parcel.readException(Parcel.java:2393)
at android.os.Parcel.readException(Parcel.java:2335)
at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:7343)
at android.app.Service.startForeground(Service.java:733)
at com.github.florent37.assets_audio_player.notification.NotificationService.displayNotification(NotificationService.kt:349)
at com.github.florent37.assets_audio_player.notification.NotificationService.access$displayNotification(NotificationService.kt:32)
at com.github.florent37.assets_audio_player.notification.NotificationService$displayNotification$1.invokeSuspend(NotificationService.kt:148)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8309)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1038)

@Sanam-Gurung Sanam-Gurung added the bug Something isn't working label Aug 31, 2023
@seceba
Copy link

seceba commented Sep 9, 2023

I am also experiencing this problem and the other issue. Has the new 3.1.1 update fixed the problem in the new 3.1.1 update and the other issue?

Other issue: #803

@vbuberen
Copy link
Contributor

This one is resolved by release 3.1.1, even though 3.1.1 has another bug mentioned above.

@imyourdeveloperhere
Copy link

Is this issue resolved?
I'm using the version "assets_audio_player: ^3.1.1"

In my android application this issue is occurring, leading to crashes in massive amount of Android 12 & 13 devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants