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
{{ message }}
This repository was archived by the owner on Jul 17, 2025. It is now read-only.
E/AndroidRuntime( 5195): android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service.github.florent37.assets_audio_player.notification.NotificationService
E/AndroidRuntime( 5195): at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)
E/AndroidRuntime( 5195): at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)
E/AndroidRuntime( 5195): at android.os.Parcel.readParcelableInternal(Parcel.java:5075)
E/AndroidRuntime( 5195): at android.os.Parcel.readParcelable(Parcel.java:5057)
E/AndroidRuntime( 5195): at android.os.Parcel.createExceptionOrNull(Parcel.java:3237)
E/AndroidRuntime( 5195): at android.os.Parcel.createException(Parcel.java:3226)
E/AndroidRuntime( 5195): at android.os.Parcel.readException(Parcel.java:3209)
E/AndroidRuntime( 5195): at android.os.Parcel.readException(Parcel.java:3151)
E/AndroidRuntime( 5195): at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:7193)
E/AndroidRuntime( 5195): at android.app.Service.startForeground(Service.java:863)
E/AndroidRuntime( 5195): at com.github.florent37.assets_audio_player.notification.NotificationService.displayNotification(NotificationService.kt:351)
E/AndroidRuntime( 5195): at com.github.florent37.assets_audio_player.notification.NotificationService.access$displayNotification(NotificationService.kt:32)
E/AndroidRuntime( 5195): at com.github.florent37.assets_audio_player.notification.NotificationService$displayNotification$1.invokeSuspend(NotificationService.kt:148)
E/AndroidRuntime( 5195): at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
E/AndroidRuntime( 5195): at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
E/AndroidRuntime( 5195): at android.os.Handler.handleCallback(Handler.java:959)
E/AndroidRuntime( 5195): at android.os.Handler.dispatchMessage(Handler.java:100)
E/AndroidRuntime( 5195): at android.os.Looper.loopOnce(Looper.java:232)
E/AndroidRuntime( 5195): at android.os.Looper.loop(Looper.java:317)
E/AndroidRuntime( 5195): at android.app.ActivityThread.main(ActivityThread.java:8705)
E/AndroidRuntime( 5195): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 5195): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
E/AndroidRuntime( 5195): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:886)
E/AndroidRuntime( 5195): Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@1f8840d, Dispatchers.Main]
I/Process ( 5195): Sending signal. PID: 5195 SIG: 9
Lost connection to device.
I'm getting this error on Android 12 and above, is there anyone who can fix it?
E/AndroidRuntime( 5195): android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service.github.florent37.assets_audio_player.notification.NotificationService
E/AndroidRuntime( 5195): at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)
E/AndroidRuntime( 5195): at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)
E/AndroidRuntime( 5195): at android.os.Parcel.readParcelableInternal(Parcel.java:5075)
E/AndroidRuntime( 5195): at android.os.Parcel.readParcelable(Parcel.java:5057)
E/AndroidRuntime( 5195): at android.os.Parcel.createExceptionOrNull(Parcel.java:3237)
E/AndroidRuntime( 5195): at android.os.Parcel.createException(Parcel.java:3226)
E/AndroidRuntime( 5195): at android.os.Parcel.readException(Parcel.java:3209)
E/AndroidRuntime( 5195): at android.os.Parcel.readException(Parcel.java:3151)
E/AndroidRuntime( 5195): at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:7193)
E/AndroidRuntime( 5195): at android.app.Service.startForeground(Service.java:863)
E/AndroidRuntime( 5195): at com.github.florent37.assets_audio_player.notification.NotificationService.displayNotification(NotificationService.kt:351)
E/AndroidRuntime( 5195): at com.github.florent37.assets_audio_player.notification.NotificationService.access$displayNotification(NotificationService.kt:32)
E/AndroidRuntime( 5195): at com.github.florent37.assets_audio_player.notification.NotificationService$displayNotification$1.invokeSuspend(NotificationService.kt:148)
E/AndroidRuntime( 5195): at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
E/AndroidRuntime( 5195): at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
E/AndroidRuntime( 5195): at android.os.Handler.handleCallback(Handler.java:959)
E/AndroidRuntime( 5195): at android.os.Handler.dispatchMessage(Handler.java:100)
E/AndroidRuntime( 5195): at android.os.Looper.loopOnce(Looper.java:232)
E/AndroidRuntime( 5195): at android.os.Looper.loop(Looper.java:317)
E/AndroidRuntime( 5195): at android.app.ActivityThread.main(ActivityThread.java:8705)
E/AndroidRuntime( 5195): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 5195): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
E/AndroidRuntime( 5195): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:886)
E/AndroidRuntime( 5195): Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@1f8840d, Dispatchers.Main]
I/Process ( 5195): Sending signal. PID: 5195 SIG: 9
Lost connection to device.
I'm getting this error on Android 12 and above, is there anyone who can fix it?