I know this has been a topic before, but has anyone found a work around yet?
Currently I use notification style to display a notification so it won’t close in the background. So far my app stays longer than usual (there are still time that it closes, I’m still trying to figure an alternative way).
Can anyone atleast suggest a notification which cannot be cancelled just like the music notification that can’t be closed as long as it is “playing”. I need another one since my app isn’t a music app
My app uses floatingView extension, so my main app is minimized while the user can still interact with the floating component. Is there a way to prevent the system from closing my app?
its actually android version issue
lollipop to android 10…
if u remove app from recent then app completly close…
but i have a solution for u…
get permision of ( ignore battry drain) for ur app…in this way ur app is running in background even its closed from recent by user…