Android 10+:
-
Settings > Apps > Permissions > Autostart > toggle to ON
-
Settings > Apps > Permissions > Other permissions > Safe Lagoon > toggle all to ON
-
Settings > Battery & performance > disable Battery Saver (and Ultra battery Saver)
-
Settings > Battery & performance > Settings > App battery saver > Safe Lagoon > set to No restrictions (disable all restrictions on background activities)
-
Tap the Overview button to open a list of recently used apps > find Safe Lagoon > press and swipe down (or press for some time) > tap the "lock" button
-
Security app > Settings > Cleaner > Remind to clean > toggle to OFF
-
Security app > Settings > Boost speed > Clear cache when device is locked > toggle to Never
-
OPTIONAL: Xiaomi interface installer app > Settings > MIUI Pure Mode > disable
Then restart the phone, launch Safe Lagoon and see how it goes.