'Samsung Music Controls Widget not working properly

I have a working app with notification media controls. I am properly using Notification.MediaStyle(). Everything works well on Google Pixel 4a. However Samsung devices are showing their own system/default controls on lock screen. Buttons are wrong, metadata is missing and they are not usable.

So the question is how do I make them work or how do I disable them? I was not able to find any related documentation.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source