The issue is that you will have to define broadcast receiver type while registering it, if you target API 34. Context.RECEIVER_NOT_EXPORTED Context.RECEIVER_EXPORTED
For example:
if (Build.VERSION.SDK_INT >= 34) {
activity.registerReceiver(receiver, new IntentFilter("MUSIC_FAVORITE"), Context.RECEIVER_NOT_EXPORTED);
} else {
activity.registerReceiver(receiver, new IntentFilter("MUSIC_FAVORITE"));
}