(Xiaomi) How to prevent the phone from killing the app process?
Learn how to prevent Xiaomi phones from killing app background processes to ensure notifications and automations work properly.
Go back to the phone's settings page: Tap "Battery & performance", turn off the "Battery saver" and "Ultra battery saver" options (when these two options are enabled, the system will terminate many notification messages). Tap to enter "App battery saver", find the app, and enable all permissions.

مستندات SmartLife App