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

[Feature Request] Critical alerts/notifications #802

Open
ymaglaras opened this issue Sep 5, 2024 · 1 comment
Open

[Feature Request] Critical alerts/notifications #802

ymaglaras opened this issue Sep 5, 2024 · 1 comment

Comments

@ymaglaras
Copy link

Hello, lovely devs!

Apple allows apps to utilise critical alerts (i.e. notifications that ring no matter the position of the silent switch or the focus mode). This is extremely useful for critical applications such as water leakage sensors, doors/windows etc.

The feature requires explicit permission from the user (once, when the app asks for push notification rights). After that, when a notification is delivered with a specific flag, it's displayed as critical etc.

More info here (or somewhere around here): https://developer.apple.com/documentation/usernotifications/unnotificationinterruptionlevel/critical

So far, I've seen this implemented in the Apple Home app and it can literally be a life-saver.

@weakfl
Copy link
Contributor

weakfl commented Sep 6, 2024

@digitaldan the entitlement for critical alerts needs explicit permission from Apple. It can be requested via https://developer.apple.com/contact/request/notifications-critical-alerts-entitlement/

Apart from that there isn't much to implement on the app side of things (except prompting for additional permissions). Most of the work will need to be done on the backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants