v3.15.1
·
289 commits
to master
since this release
✨ New Features
- Added
clearDataOnBackupparameter. Controls whether the SDK creates a new profile when the app is restored from an iCloud backup (default:false). Read more.await Adapty.activate('YOUR_API_KEY', { ios: { clearDataOnBackup: true, }, });
- Paywall: Added a default
onRenderingFailedhandler that automatically closes the paywall if rendering fails.
Fixes
- [iOS] Fixed the
AdaptyPaywallViewpaywallprop soplacementIdis passed correctly. - Paywall events rework:
- Fixed
onPaywallClosednot being emitted; now it fires as expected. - [Android] Added support for the
onWebPaymentNavigationFinishedevent.
- Fixed
⚠️ Breaking Changes
- Removed
AdaptyPaywallViewprops:onAndroidSystemBack,onPaywallClosed. Use your app navigation instead; both are still available via theViewController.setEventHandlers()API.
❗️Known Issues
(iOS) in RN v3.15.1 when a user opens a Web Paywall (in-app browser mode only) from a Paywall Builder and then navigates back, the original paywall can no longer be closed. This happens because the paywall’s event handlers have already been unsubscribed, so close actions are not handled.
Workarounds:
- In the Adapty dashboard, change the Web Paywall button’s “Open paywall in” setting from In-app browser to external browser.
- Upgrade to SDK v3.15.2
- Or downgrade to SDK v3.15.0.