Baseflow / Baseflow/XamarinMediaManager

Disable Notification Completely.

Open
#802 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
763
Forks
299
PR merge metrics
No merged PRs in 30d

Description

Hi,

I got a new requirement for notification control in the media manager, that is, I can't add every song to the queue at first, so every time after the media finished event is triggered, I need to add new song to the queue by clearing the previous one and adding it, in doing this I cannot have the full navigation controls on the notification panel, since I found it impossible to use next and previous buttons on the notification without adding every song to the queue, I have tried setting the "notification.enable = false" and then create a custom notification and everything working as expected, but the problem has arrived when users tried to control the media using Headphone, watches, or some other control, The even is called to the default Exo player notification.

To avoid these I have tried using "android.intent.action.MEDIA_BUTTON" in my own broadcast receiver and set the intent filter priority to the max, but still other device control targets to Exo player, so the help I want is to use my own custom notification without Exo player interrupting it. is there any way to do this?

Thanks and Regards,
Jack Paul T

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.