Keeping alive using AlarmManager
When activating a session, the user expects the app running in the background. For some os (like huawei emui), the app may still be accidentally killed in the recent app cleaning process even if battery optimization and other related system settings are set correctly by the user.
So it would be better if there is a timed alive check to make sure the background service are always running.
Edited by John Smith