Skip to content

4.4.0

Latest

Choose a tag to compare

@x401om x401om released this 30 Nov 16:31

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. SetFallback rejects 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.SendAppMessage and AdaptyUIFlowView.SendAppMessage send an object to the flow's script. Send it once FlowViewDidAppear has 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 AdaptyErrorCode values: PlatformNotSupported, AdaptyNotActivated, AdaptyUINotActivated, AdaptyUIActivateOnce, WrongComponentType, UnsupportedUrlScheme and WebKit.

🔄 Changed

  • [iOS] An AdaptyUI call made before activation fails with AdaptyNotActivated or AdaptyUINotActivated instead of Unknown.
  • AdaptyPrice.CurrencyCode and AdaptyPrice.LocalizedString are never null, on both platforms.

🐛 Fixed

  • [Android] AdaptyUI.DismissFlowView never 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 FlowViewDidReceiveError instead 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