I know that either android:excludeFromRecents="true" in the android manifest should be achievable, or Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS Intent flag.
The problem is that this does not work if the application is currently displayed - when you click the "Recent Applications" button, the application is always displayed first, which allows you to quickly kill the application (by scrolling it). Not suitable for alarm app.
The music service continues to play, fortunately, and the user can return to the completion of the alarm with a notification, but it is very difficult for me to recreate the action stack.
Any quick fix available?
Koger source share