From 3d9658d41b5dbea5177f3704a10922ebb912ccaf Mon Sep 17 00:00:00 2001 From: Laurent Date: Tue, 29 Apr 2025 17:51:53 +0200 Subject: [PATCH] Adds purchase refresh when opening app --- PadelClub/AppDelegate.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PadelClub/AppDelegate.swift b/PadelClub/AppDelegate.swift index a678151..f48fff5 100644 --- a/PadelClub/AppDelegate.swift +++ b/PadelClub/AppDelegate.swift @@ -22,6 +22,10 @@ class AppDelegate : NSObject, UIApplicationDelegate, UNUserNotificationCenterDel return true } + + func applicationWillEnterForeground(_ application: UIApplication) { + Guard.main.refreshPurchasedAppleProducts() + } // MARK: - Remote Notifications