Skip to content

Commit

Permalink
Address dispatch_assert_queue_fail (#2161)
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto authored Aug 13, 2024
1 parent caac133 commit 2a2b607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packages/Env/Sources/Env/PushNotificationsService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 2a2b607

Please sign in to comment.