Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot play music without granting notification permission #56

Open
7 tasks done
austinoneil opened this issue Apr 29, 2024 · 3 comments · May be fixed by #57
Open
7 tasks done

Cannot play music without granting notification permission #56

austinoneil opened this issue Apr 29, 2024 · 3 comments · May be fixed by #57
Labels
enhancement New feature or request

Comments

@austinoneil
Copy link

Checklist

  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • 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 austinoneil added bug Something is not working needs triage Issue is not yet ready for PR authors to take up labels Apr 29, 2024
@austinoneil
Copy link
Author

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.

@Aga-C Aga-C added enhancement New feature or request and removed bug Something is not working needs triage Issue is not yet ready for PR authors to take up labels Apr 29, 2024
@naveensingh
Copy link
Member

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.

@austinoneil
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants