Adapty iOS SDK'yı v. 3.15'e Taşıma
Observer mode içinde Paywall Builder kullanıyorsanız, iOS SDK 3.15’ten itibaren yeni bir metot olan observerModeDidInitiateRestorePurchases(onStartRestore:onFinishRestore:) metodunu uygulamanız gerekiyor. Bu metot, restore mantığı üzerinde daha fazla kontrol sağlayarak restore satın alma işlemlerini kendi özel akışınızda yönetmenize olanak tanır. Tam uygulama ayrıntıları için Observer mode’da Paywall Builder paywalllarını sunma konusuna 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
+ }