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

Add 'interruption-level' value to the 'apn' dictionary of the notification payload. #105

Closed
ice-cream-coder opened this issue Aug 12, 2021 · 1 comment

Comments

@ice-cream-coder
Copy link

ice-cream-coder commented Aug 12, 2021

Overview

Starting in iOS 15 you can specify an 'interuption-level' not the 'apn' dictionary to specify how a notification is delivered.

This possible values for 'interruption-level' are:

  • Passive (new) - No sound, no vibration, no screen waking, no break through of focus settings.
  • Active (default) - Allows sound, vibration, screen waking, no break through of focus settings.
  • Time-Sensitive (new) - Allows sound, vibration, screen waking, can break through system controls if allowed.
  • Critical - Allows sound, vibration, screen waking, can break through system controls, and bypass ringer switch.

Considerations

Does this feature need to wait until the official iOS 15 Release?

I don't think this feature needs to wait for iOS 15. I would like to work on and test 'time-sensitive' notification ahead of time to be ready for iOS 15.

Will this feature break compatibility?

This feature should be none breaking since it is purely additive.

I think this should be trivial to add and I can put up a PR to make the change. I just want to make sure nobody else is working on it.

@benubois
Copy link
Collaborator

benubois commented Sep 7, 2021

Done in #106.

@benubois benubois closed this as completed Sep 7, 2021
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

No branches or pull requests

2 participants