I have an android application with a WallpaperService running for some days but Android stops it randomly after 3, 4 days of usage and the wallpaper disapears .
I plugged Sentry but no exception or crash appeared.
Do you have an idea for this problem? How to keep my WallpaperService running and to avoid closure by Android?
I tried to plug Sentry to the application, but no exception or crashed appeared, so i think it's Android that close the application, i'm looking for a way to avoid that closure
Finally, i put a foreground service (at the same time than the existing WallpaperService) and disabled battery optimisation, and it seems to work, my WallpaperService stays alive