Music-Player icon indicating copy to clipboard operation
Music-Player copied to clipboard

Cannot play music without granting notification permission

Open austinoneil opened this issue 1 year ago • 3 comments

Checklist

  • [X] I can reproduce the bug with the latest version given here.
  • [X] I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • [X] I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • [X] I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • [X] This issue contains only one bug.
  • [X] I have read and understood the contribution guidelines.

Affected app version

1.0.0

Affected Android/Custom ROM version

GrapheneOS latest

Affected device model

Pixel 7

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

  1. Open the app
  2. Deny the app notification permissions
  3. Attempt to play a track

Expected behavior

App plays track

Actual behavior

A modal pops up saying "You must allow the app displaying notifications, else it cannot play songs"

Screenshots/Screen recordings

No response

Additional information

No response

austinoneil avatar Apr 29 '24 02:04 austinoneil

I deleted the check on my local machine and kept the permission denied, and it was working. If this was because of the media session that shows up in the notification bar, media sessions are exempt from the notification permission.

austinoneil avatar Apr 29 '24 03:04 austinoneil

The notification permission isn't just there for the media session. It's used to send notifications like "Storage permission is required" when playback is triggered from the background and there is no storage permission or an error message when the service fails. The media scanner will probably be moved to a foreground service in the future and that will require the notification permission too.

naveensingh avatar Apr 30 '24 15:04 naveensingh

Gotcha. Do you think it would make sense to use a different method of notifying users when they have notifications denied? (snackbar item, toast, etc.) As is, you cannot play music without granting notification permission.

austinoneil avatar Apr 30 '24 20:04 austinoneil