import UserNotifications import UIKit final class NotificationService { static let shared = NotificationService() func requestPermission() async -> Bool { (try? await UNUserNotificationCenter.current() .requestAuthorization(options: [.alert, .sound, .badge])) ?? false } @MainActor func registerForRemoteNotifications() { UIApplication.shared.registerForRemoteNotifications() } }