NetNewsWire/iOS/Inspector
Stuart Breckenridge 6224dfad03
Notification Permission Requests
Fixes #2057

• On app launch, the app checks if notification permissions are granted and registers with APNS if that is the case. It will not request permissions as part of the app launch.

• When a user requests to be notified of new articles, the authorizationStatus is checked:
- if `notDetermined` or `provisional`, an authorization request is made, and if successful, the Notify of New Articles status is updated (otherwise it is reverted)
- if `denied`, an alert is thrown asking the user to enable in settings (and the change to notify of new articles is reverted)
- if `authorized` the update is made.

`WebFeedInspectorViewController` also monitors for the app entering the foreground so that it can get the latest notification auth settings.
2020-05-18 08:39:22 +08:00
..
AccountInspectorViewController.swift Removed double spaces after punctuation in user-facing strings 2019-12-08 11:10:32 +09:00
Inspector.storyboard Implement VibrantBasicTableViewCell 2020-01-12 23:53:08 +02:00
InspectorIconHeaderView.swift Use grouped inset style on Settings #1266 2019-11-07 06:40:10 -06:00
WebFeedInspectorViewController.swift Notification Permission Requests 2020-05-18 08:39:22 +08:00