Custom UI on notification bar

Hi all,

I’m using Ionic 4 to write an app which has a media player which plays a media file in the background.

I would like to have a mini player on Notification Bar like the picture below so that the user can pause or stop playing without going back to the app.


I’ve found some tutorials with Android Studio and Java/Kotlin but found nothing helpful with Ionic.

I would like to ask if we can create a custom notification UI like that with Ionic? If yes, can you please send me a link so that I can read and learn myself.

Thank you in advance.

I found out that I can use Local Notification PlugIn to do something similar

But still not exact what I want because after clicking the action. The notification will be removed also from notification bar. Moreover, the action button will disappear somehow later. :frowning: