feat:3720: hide foreground service notification programatically
Description
As it has been done on eDrive, Advanced-Privacy, ... we pursue the effort of removing the persistent flag on apps which aren't required for basic use of the system.
Previous attempt, with sharedId = systemUId and allow-in-powersave wasn't enough to avoid freezing.
Here, we use foreground service, and then programatically hide the notification channel.
Tests
- Install Pachly from AppLounge (or any UnifiedPush capable app), and bserve that notification are working
- Enable in developer settings "suspend execution for cached apps" instead of ("device default")
- Activate Battery saver
- Disconnect the phone for at least 30minutes
- Then send to the app a notification, it should notify quickly, without requiring to wakeup the phone manually.
Issues
https://gitlab.e.foundation/e/os/backlog/-/issues/3720