Adapty iOS SDK'yı v3.15'e Geçirin

Paywall Builder’ı Observer mode’da kullanıyorsanız, iOS SDK 3.15’ten itibaren yeni bir observerModeDidInitiateRestorePurchases(onStartRestore:onFinishRestore:) metodu uygulamanız gerekiyor. Bu metot, satın alma işlemlerini geri yükleme mantığı üzerinde daha fazla kontrol sağlayarak bunları kendi özel flow’unuzda yönetmenize olanak tanır. Tam uygulama ayrıntıları için Observer mode’da Paywall Builder paywall’larını sunma sayfasına bakın.

func observerMode(didInitiatePurchase product: AdaptyPaywallProduct,
                 onStartPurchase: @escaping () -> Void,
                 onFinishPurchase: @escaping () -> Void) {
      // use the product object to handle the purchase
      // use the onStartPurchase and onFinishPurchase callbacks to notify AdaptyUI about the process of the purchase
}

+ func observerModeDidInitiateRestorePurchases(onStartRestore: @escaping () -> Void,
+                                            onFinishRestore: @escaping () -> Void) {
+      // use the onStartRestore and onFinishRestore callbacks to notify AdaptyUI about the process of the restore
+ }