[REQUIRED] Searched documentation and issues
I can see that cast extension is using com.google.android.gms:play-services-cast-framework:17.0.0
[REQUIRED] Question
When using Chromecast through the CastPlayer, my app has started to crash with this error:
Fatal Exception: android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{3bbcad0 u0 grit.storytel.app/com.google.android.gms.cast.framework.media.MediaNotificationService}
I am not the only one having this issue and Google says it was fixed with version 18.0.0:
https://issuetracker.google.com/issues/141363075#comment6
So based on that, I think it is worth trying to update play-services-cast-framework to latest version which is currently 18.1.0