Some phone brands automatically close background apps to save battery.
- Samsung: Disable "Put Unused Apps to Sleep" in Device Care > Battery > App Power Management.
- Xiaomi: Go to Battery & Performance > App Battery Saver and set Karta Cockpit to No Restrictions.
- Huawei: Disable battery optimizations in Battery > App Launch > Manage Manually.