cancel
Showing results for 
Search instead for 
Did you mean: 

BIND_NOTIFICATION_LISTENER_SERVICE for Media Control/Metadata

scottgarner
Honored Guest

Hello,

I'm working on a music visualization app called Fizz in Unity. I am able to visualize system audio using the Android Visualizer Class and I'm able to control/pause playback by dispatching media key events to Android's AudioManager.

However, I'm struggling to get current track metadata. The appropriate way to do this seems to be to use MediaSessionManager with a custom NotificationListenerService. Unfortunately, notification listener permission requires the user to manually enable it in settings. Quest OS apparently does not properly surface this permission and android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS goes to the generic system settings.

I have confirmed that the full pipeline works by manually granting that permission with ADB, so the only thing blocking me is the missing option in settings. Unless there's another way to do this?

Thanks!

-S

0 REPLIES 0