Open AEiosApp opened 7 months ago
We've had the same issue, were you able to fix this by downgrading?
@matthewbal no, was you able to fix your issue by downgrading? If yes, to which version?
Unfortunately not, we've decided to opt for a native player plugin so that we have more granular control over background play. On IOS it is impossible to start a foreground service from the background, so we need to use native there anyway.
We're implementing a plugin similar to the one mentioned in this forum post.
https://forum.ionicframework.com/t/audio-in-the-background-for-ionic-capacitor-app/234073
Recently updated plugin to version 3.0.2 and in the Firebase crashlytics can see that 8 users had crashes with this logs:
Fatal Exception: android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{7c8a25b u0 com.ae.touringbee/io.github.jofr.capacitor.mediasessionplugin.MediaSessionService}
Caused by android.app.StackTrace Last startServiceCommon() call for this service was made here