We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a415a5d commit 1f29225Copy full SHA for 1f29225
Projects/App/Sources/AppDelegate/AppDelegateFeature.swift
@@ -59,12 +59,9 @@ public struct AppDelegateFeature {
59
group.addTask {
60
let setting = await self.userNotifications.getNotificationSettings()
61
switch setting.authorizationStatus {
62
- case .authorized:
+ case .authorized, .notDetermined:
63
guard try await self.userNotifications.requestAuthorization([.alert, .sound])
64
else { return }
65
- case .notDetermined, .provisional:
66
- guard try await self.userNotifications.requestAuthorization(.provisional)
67
- else { return }
68
default: return
69
}
70
await self.registerForRemoteNotifications()
0 commit comments