App just in Notifications visible sending remote media button keystrokes

I found some more Extensions for this project. So now I can Autoplay/Pause on plugin the power plug. But also I tried this Notification Style Extension adding a Notification, this is not working, when my app isn't in foreground or display is off. Any idea how to solve this? I found this, but I cannot find out how it works: Open Source • Background Tasks: Itoo 🚀 also the example contains puzzle parts that doesn't exist in the downloadable extension.
AutoPlayOnPower.aia (58.5 KB)