Address dispatch_assert_queue_fail (#2161)

See https://twitter.com/dimillian/status/1823089444397724003?s=61&t=SC3rvyJQWn1NQqAgMVrT0Q
This commit is contained in:
NachoSoto 2024-08-12 23:37:53 -07:00 committed by GitHub
parent caac1334d1
commit 2a2b607e32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -120,7 +120,7 @@ public struct HandledNotification: Equatable {
}
public func requestPushNotifications() {
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) { _, _ in
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) { @Sendable _, _ in
DispatchQueue.main.async {
UIApplication.shared.registerForRemoteNotifications()
}