Closed kyo-torstar closed 1 week ago
Any news on this? 🙏
has anyone tried to patch this PR?
Having the same issue, any plans to merge this soon @dcvz?
Is this also supposed to be executed when no audio is playing?
I rolled this out to production a couple days ago, seems to have tamed the issue a bit, but got one crash event in Crashlytics still:
Fatal Exception: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service rhyme.dictionary.mobileapp/com.doublesymmetry.trackplayer.service.MusicService
at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)
at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)
at android.os.Parcel.readParcelableInternal(Parcel.java:4833)
at android.os.Parcel.readParcelable(Parcel.java:4795)
at android.os.Parcel.createExceptionOrNull(Parcel.java:3023)
at android.os.Parcel.createException(Parcel.java:3012)
at android.os.Parcel.readException(Parcel.java:2995)
at android.os.Parcel.readException(Parcel.java:2937)
at android.app.IActivityManager$Stub$Proxy.startService(IActivityManager.java:5945)
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1914)
at android.app.ContextImpl.startForegroundService(ContextImpl.java:1890)
at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:822)
at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:822)
at com.horcrux.svg.TSpanView$$ExternalSyntheticApiModelOutline0.m()
at com.doublesymmetry.trackplayer.module.MusicModule.setupPlayer(MusicModule.kt:239)
at java.lang.reflect.Method.invoke(Method.java)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:146)
at com.facebook.jni.NativeRunnable.run(NativeRunnable.java)
at android.os.Handler.handleCallback(Handler.java:984)
at android.os.Handler.dispatchMessage(Handler.java:104)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
at android.os.Looper.loopOnce(Looper.java:238)
at android.os.Looper.loop(Looper.java:357)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:233)
at java.lang.Thread.run(Thread.java:1012)
This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This PR was closed because it has been stalled for 7 days with no activity.
Describe the Bug There are lots of reports about the crash log
Steps To Reproduce
Related Issues it should fix the issue https://github.com/doublesymmetry/react-native-track-player/issues/2244