You’ll want to make sure battery optimizations are disabled for them, so Android will be less likely to close the app for only being in the background. Sometimes allowing the app to keep a persistent notification going can help as well. A lot of the specific details can vary by phone and android OS version, so web search will be your friend on this.
I’ll warn you though, with some phones, you can do everything right and it may still auto-close them on occasion.



I mean, that’s hypothetically less invasive than requiring your photo ID, and it’s exactly what people have been asking for for stuff like Steam being required to identify a user’s age. If the account itself is over 18 years old, the user is. If it had an attached debit card, you can probably assume it’s an adult. Etc.
So on one hand, eww privacy. On the other, it’s info they already have on you and better than forcing ID.