Barry Kostjens
Barry Kostjens
I experience the same problem as described here. Did you ever find a solution?
Any chance on an updated release for Mojave?
[bug] android.app.ForegroundServiceStartNotAllowedException: startAndStopEmptyNotificationToAvoidANR
I’m seeing the exact same crash reports while using version 4.0.1
[bug] android.app.ForegroundServiceStartNotAllowedException: startAndStopEmptyNotificationToAvoidANR
track-player 4.0.1 - [ google husky (Pixel 8 Pro) ] - [ Android 14 (SDK 34) ] ``` Exception java.lang.RuntimeException: at android.app.ActivityThread.handleServiceArgs (ActivityThread.java:5261) at android.app.ActivityThread.-$$Nest$mhandleServiceArgs at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2447) at android.os.Handler.dispatchMessage...
Same problem here. Hope the PR solves it!
I tried the code change from the PR (in 4.0.1) and it works perfectly for me now.
@akshaymanagooli I applied the changes from the pull request: https://github.com/doublesymmetry/react-native-track-player/pull/2194 Basically very minor edit, you only need to change line no 38 of trackPlayer.ts as seen here: https://github.com/doublesymmetry/react-native-track-player/pull/2194/files