Repository navigation
Adapty Unity SDK 4.4.0 lets your app talk to a running flow: send it messages, receive arguments from its custom actions, and render your own custom elements inside it.
⚠️ Breaking
- The fallback file format has changed.
SetFallbackrejects the files downloaded for 4.1–4.3: download both fallback files again from the Adapty Dashboard. - [iOS] Flow views need iOS 16. Below it, flow view calls fail with
AdaptyErrorCode.PlatformNotSupported. Onboardings and the rest of the SDK still run on iOS 15.
✨ Added
AdaptyUI.SendAppMessageandAdaptyUIFlowView.SendAppMessagesend an object to the flow's script. Send it onceFlowViewDidAppearhas reported the view.AdaptyUIUserAction.Arguments: the object a flow's script passes with a custom action.- Custom elements in flows: render your own native views inside a flow with an
AdaptyUICustomElementsResolver. The demo app shows one in Swift and Java. - [iOS] New
AdaptyErrorCodevalues:PlatformNotSupported,AdaptyNotActivated,AdaptyUINotActivated,AdaptyUIActivateOnce,WrongComponentType,UnsupportedUrlSchemeandWebKit.
🔄 Changed
- [iOS] An AdaptyUI call made before activation fails with
AdaptyNotActivatedorAdaptyUINotActivatedinstead ofUnknown. AdaptyPrice.CurrencyCodeandAdaptyPrice.LocalizedStringare never null, on both platforms.
🐛 Fixed
- [Android]
AdaptyUI.DismissFlowViewnever completed when the system had already closed the flow's screen, for example after the app was reopened from a notification. - [Android] An error thrown by a flow's script now reaches
FlowViewDidReceiveErrorinstead of only being logged. - [iOS] Flows: a screen shown inside another screen could be laid out at the full device size (since 4.3.0).
- [iOS] Flows: other layout and rendering fixes; alert dialogs show localized strings.
📦 Installation
https://github.com/adaptyteam/AdaptySDK-Unity.git?path=/Packages/com.adapty.unity-sdk#4.4.0
Native dependencies: AdaptySDK-iOS 4.4.1, AdaptySDK-Android 4.4.2, cross-platform contract 4.4.1.
❗️ Don't forget to update your local fallback file if needed.
Full Changelog: 4.3.0...4.4.0