Skip to content

Commit defb07a

Browse files
committed
Makes provisional notifications count as unauthorised
1 parent a384133 commit defb07a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ The changelog for `SuperwallKit`. Also see the [releases](https://github.com/sup
88

99
- Adds microphone permission request support.
1010

11+
### Fixes
12+
13+
- Fixes issue where the notification permission prompt would not appear if provisional notification permission was already granted.
14+
1115
## 4.12.4
1216

1317
### Enhancements

Sources/SuperwallKit/StoreKit/Transactions/Notifications/NotificationScheduler.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ actor NotificationScheduler {
164164
let settings = await notificationCenter.notificationSettings()
165165
switch settings.authorizationStatus {
166166
case .authorized,
167-
.ephemeral,
168-
.provisional:
167+
.ephemeral:
169168
return true
170169
default:
171170
return false

0 commit comments

Comments
 (0)