/// let cancellable = center.$authorizationStatus
/// .sink() {
/// switch center.authorizationStatus {
/// case .notDetermined:
/// // Handle the change to notDetermined.
/// case .denied:
/// // Handle the change to denied.
/// case .approved:
/// // Handle the change to approved.
/// }
/// }
But when I went to set the change permissions,unable track changes to your app's authorization status
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
The steps are as follows:
1、AuthorizationCenter.shared.requestAuthorization(for: .individual) And grant permission
2、go to Settings , Cancel permission
3、Go back to the APP and query permissions,AuthorizationCenter.shared.authorizationStatus always Approved