I got the problem solved. It was most likely caused by an old version of compose (1.7.5).
I noticed, because I setup a new project to test the fullscreen notification feature without the rest of the application. Everything worked fine there. But when I copied the files into the main project and called the test classes it did not work. I upgraded all libraries used in the project. Now everything works fine.