diff --git a/PadelClub/AppDelegate.swift b/PadelClub/AppDelegate.swift index f48fff5..6381247 100644 --- a/PadelClub/AppDelegate.swift +++ b/PadelClub/AppDelegate.swift @@ -24,7 +24,9 @@ class AppDelegate : NSObject, UIApplicationDelegate, UNUserNotificationCenterDel } func applicationWillEnterForeground(_ application: UIApplication) { - Guard.main.refreshPurchasedAppleProducts() + Task { + try await Guard.main.refreshPurchasedAppleProducts() + } } // MARK: - Remote Notifications