I have implemented music player which fires a custom notification when stream audio is playing.
Everything is working and I can play/pause the audio using the button
You have to set your notification.contentView to the new remoteView after it was changed so it can update the notification view itself.
Meaning, after you receive the action in your BroadcastReceiver, re-build your notification with the desired button display ( pause or play )
Hope this helps