mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-28 02:18:50 +00:00
On iOS, it's possible for the notification granting process to throw errors, though not very likely. This PR updates updates the plumbing for how we request user notifications on iOS and respond to the result, allowing for errors to be propagated back to the user in case something goes wrong. Note that unlike installing system extensions and VPN configurations, disallowing notifications _does not_ result in an error being thrown. Instead, we receive `false`, and we now track this Bool instead of the entire `UNAuthorizationStatus` for updating the UI with. By keeping that Bool `nil` until we load the authorization status, we fix #7617 as a bonus. Related: #7714 Fixes: #7617
FirezoneKit
A description of this package.