-
I had same issue with Oppo, Vivo, Mi and etc phones, after removing from recent applications app was getting killed even services was getting killed
Solution:
I had add autostart permissions like this in my application and it worked. -
After resolving this issue my app was getting frozen/killed after sometime running in background due to DOZE mode
Solution:
for this condition this worked and now my app is working in background in any device