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

parse interruptionLevel field to allow time-sensitive notifications #349

Conversation

varungupta85
Copy link
Contributor

iOS introduced a new feature called Focus modes in which notifications don't make a sound and don't wake up the screen unless notifications are marked time-sensitive. Notifications can be marked time-sensitive by providing an interruptionLevel. Added support to provide interruptionLevel while adding a notification request.

Fixes #345

@galkn
Copy link

galkn commented Feb 21, 2022

Do you know if there is way to configure the amount of time the time-sensitive notification remains on the lock screen? It seems the native reminders app is able to keep them there indefinitely (unless explicitly dismissed), whereas in other cases it is 1-2 hours.

@joebernard
Copy link

Can we get this one reviewed? Having time-sensitive notifications is an important feature.

Copy link
Collaborator

@Naturalclar Naturalclar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Naturalclar Naturalclar merged commit 71e853a into react-native-push-notification:master Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for setting interruptionLevel (time-sensitive) in notifications
6 participants