ostinelli / apnotic

A Ruby APNs HTTP/2 gem able to provide instant feedback.
MIT License
480 stars 96 forks source link

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

Closed ice-cream-coder closed 3 years ago

ice-cream-coder commented 3 years ago

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:

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 commented 3 years ago

Done in #106.