Media style notification (android 11) on lock screen


I’m re-making my music player app but for android 11. The main thing I’m changing is the music notification since the one I used before does not work for android 11.

The notification I’m using is this one:

The thing is that the notification does not appear at the lock screen even if the priority is set at max level. And also, you can dismiss it as if it were a normal notification.

So, my question is, how can I show the notification on lock screen? And how can I make the notification “undissmisable”

Thanks to anyone who would like to help me.