[BUG]: Fatal Exception: android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord
mezalejandro opened this issue · comments
Version
^6.1.2
What platforms are you having the problem on?
Android
System Version
11
On what device are you experiencing the issue?
Real device
Architecture
Old architecture
What happened?
On firebase, I'm getting a lot of error alerts:
Reproduction
repository link
Reproduction
Step to reproduce this bug are:
do you use showNotificationControls ?
Hello @freeboub no, i don't use it.
I disabled showNotificationControls but the mistake it still.
Thanks
OK, but are you sure this is related to react native video ?
I don't see any proof or clue to point react native video package ...
Hello @freeboub, I copied the issue from firebase:
Fatal Exception: android.app.ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{b7c2b81 u0 com.myapp/com.brentvatne.exoplayer.VideoPlaybackService}
at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2147)
at android.app.ActivityThread.access$2800(ActivityThread.java:310)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2376)
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:8663)
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:1135)
Ok, clear, I don't understand because the service shall started only if showNotificationControls is true 🤔