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

Alerts during transition from session to break, session to session. #178

Open
vishwaksen-1 opened this issue Sep 18, 2024 · 1 comment
Open
Labels
bug Something isn't working P1 High-priority issues at the top of the work list

Comments

@vishwaksen-1
Copy link

vishwaksen-1 commented Sep 18, 2024

There should be a small alert saying we need to take a break or the next session is starting. It's frustrating.

Like I wanted to refill my water bottles in my break and didn't cos I didn't know when the break started and ended.

Edit: I just found out that there are alerts, but the alerts are not making sound when DnD is on. When I later turned DnD off for another of my sessions, the alerts were loud and clear. This might need fixing.

@guyluz11 guyluz11 self-assigned this Nov 20, 2024
@guyluz11 guyluz11 added bug Something isn't working P1 High-priority issues at the top of the work list labels Nov 20, 2024
@guyluz11 guyluz11 removed their assignment Nov 20, 2024
@guyluz11
Copy link
Owner

guyluz11 commented Nov 20, 2024

After taking a look at the notification package we use https://pub.dev/packages/awesome_notifications I have found this

Set the criticalAlerts channel property and notification content property to true. This feature allows you to show notifications and play sounds even when the device is on silent or Do Not Disturb mode. Due to its sensitivity, this feature requires special authorization from Apple on iOS and explicit user consent on Android versions greater than or equal to 11. On iOS, you must submit a request for authorization to Apple to enable it, as described in this post.

We are currently using criticalAlerts so we need to see what is missing, maybe the request that is described in the paragraph.

Also found this and not sure if they come together or if it is one or the other

CriticalAlert: Critical alerts is a special permission that allows to play sounds and vibrate for new notifications displayed, even if the device is in Do Not Disturb / Silent mode. For iOS, you must request Apple a authorization to your app use it.

OverrideDnD: Override DnD allows the notification to decrease the Do Not Disturb / Silent mode level enable to display critical alerts for Alarm and Call notifications. For Android, you must require the user consent to use it. For iOS, this permission is always enabled with CriticalAlert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1 High-priority issues at the top of the work list
Projects
None yet
Development

No branches or pull requests

2 participants