Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why PlayerNotificationManager not showing Notification on startForeground in Android 11(R)?

I am using the PlayerNotificationManager with Exoplayer and upto Android 10 Notification Tray is visible on startForeground() but in one of my phone when I upgraded to Android 11, the Notification Tray for media player stopped showing.

Please Help!!

Here I debugged on Google Pixel Now:

Working on Google Pixel android 11 but Not on Samsung G973F. Why this is not working on Samsung??

like image 861
DeePanShu Avatar asked Nov 20 '25 00:11

DeePanShu


1 Answers

Here, I arises the issue On git ExoPlayer, the it's an device specific Issue, so, here is the link of that issue,

https://github.com/google/ExoPlayer/issues/8500

Use MediaSessionConnector with ExoPlayer PlayerNotificationManager and MediaSessions:

https://github.com/google/ExoPlayer/tree/release-v2/extensions/mediasession

Here there is use of MediaSession and MediaSessionConnector in more brief:

https://developer.android.com/codelabs/supporting-mediasession

like image 82
DeePanShu Avatar answered Nov 21 '25 12:11

DeePanShu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!