How to get notification callbacks using Android MediaSessionCompat
问题 I'm having some difficulty working with Android's MediaSession. I've been working on a prototype radio application that should stream from a url. So far I've got it working with a foreground service that gets controlled from a button in the home screen. The audio continues out width the app as expected however I have a notification that either shows a play or stop button depending on the playback state. My issue is that this button does not work. I've detected that onStartCommand is getting