-
Notifications
You must be signed in to change notification settings - Fork 243
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
[iOS] Unable to observe if the timeSensitive permission has been granted #1194
Comments
This is what I can observe after requesting the notification permissions:
Setting the Time-Sensitive Notifications switch to true or false does NOT change the NotificationSettings object after requesting the permissions with |
time-sensitive interruption level is no longer a permission, it is an entitlement. Your app either has it or it doesn't. But I think that's just a language thing - that is, semantics - in the iOS docs it is definitely an entitlement now but it is also a "setting", which...works like a permission. The actual permission is deprecated here, was only ever on iOS 15 - https://developer.apple.com/documentation/usernotifications/unauthorizationoptions/timesensitive But! Assuming you have the entitlement, it is an interruption level you may set - it appears we have implemented it based on the sample code in current docs And it looks like it should come through as information about current notification center settings: We parse those and return them here, but it looks like we're missing a fetch for notifee/ios/NotifeeCore/NotifeeCore.m Lines 709 to 722 in b73c76d
If you added that in and tested it I bet it would work? I'd happily take a PR for it if it worked for you |
I am developing a mobile application and some notifications rely on the timeSensitive interruption level.
As far as I can see here, observing the setting doe not provide any information on the timeSensitive value.
Is it possible to observe if the timeSensitive permission has been granted on the device?
I can easily observe the other values (as documented here) but nothing that I can see about the timeSensitive permission...
PS. I'm currently using the latest version as today:
"@notifee/react-native": "^9.1.8",
The text was updated successfully, but these errors were encountered: