LagradOst / QuickNovel

Android app for downloading novels
MIT License
1.09k stars 63 forks source link

TTS Fails when app is in background #233

Open EstebanVerschueren opened 8 months ago

EstebanVerschueren commented 8 months ago

TTS pauses when app is background.

Im on pixel 7, i have turned of all battery optimisations (yes i tried everything). I have deleted the cache, reinstalled, built the apk myself etc. I have been trying to fix the issue for a few days now. NovelDokusha's implementation of tts does not have this issue however i do not like the app and would LOVE to be able to used quicknovel as my main novel app. I don't know how many people have this issue but it would be lovely if it could be fixed. Thank you <3

LagradOst commented 8 months ago

I legit see no real difference when looking at the code, tts on android is just fucked I guess. I can say that I have not coded anything to be tied to if the app can run in the background or not.

LagradOst commented 8 months ago

Hmmm, when looking at it. it seams to actually start a foreground service so the app is not killed in the background

EstebanVerschueren commented 8 months ago

Thank you for looking into it, i guess running the notification as a foreground service could resolve the issue(not an android dev at all i might not know what im talking about at all lmao)