Open austinoneil opened 2 weeks ago
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.
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.
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.
Checklist
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
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