Adds purchase refresh when opening app

sync3
Laurent 6 months ago
parent d910ca1646
commit 3d9658d41b
  1. 4
      PadelClub/AppDelegate.swift

@ -23,6 +23,10 @@ class AppDelegate : NSObject, UIApplicationDelegate, UNUserNotificationCenterDel
return true return true
} }
func applicationWillEnterForeground(_ application: UIApplication) {
Guard.main.refreshPurchasedAppleProducts()
}
// MARK: - Remote Notifications // MARK: - Remote Notifications
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {

Loading…
Cancel
Save