Migrate Adapty Unity SDK to v4.4
Adapty Unity SDK 4.4 changes the fallback file format, requires iOS 16 for flows, and reports flow script errors to your app on Android. To update your app to 4.4, install the new SDK version, and replace both fallback files in the same build. Earlier SDK versions reject the new files. Then review the other changes in this guide.
If you’re still on 4.1 or earlier, start with Migrate to v4.3 and then follow this guide.
The fallback file format changed in 4.4, and the compiler can’t detect a fallback file for SDK 4.1–4.3. Without new fallback files, every placement loses its fallback.
Quick reference
| v4.3 | v4.4 |
|---|---|
| Fallback files downloaded for 4.1–4.3 | New fallback file format; download both files again |
| Flows open on iOS 15 | Flows require iOS 16 |
| On Android, the SDK only logs flow script errors | They reach FlowViewDidReceiveError as JsException |
Installation
To install SDK 4.4 via the Unity Package Manager, use this Git URL:
https://github.com/adaptyteam/AdaptySDK-Unity.git?path=/Packages/com.adapty.unity-sdk#4.4.0If you install the SDK from a Unity package, download adapty-unity-plugin-4.4.0.unitypackage from the 4.4.0 release.
The requirements are unchanged: Unity 6.0 (6000.0), iOS 15.0, and Xcode 26. Flows are the exception: see Flows require iOS 16. See Install Adapty SDK for the full setup.
Replace the fallback files
To download the fallback files again, in Placements, click Fallbacks > Download iOS Fallback. In the Adapty SDK v4.4.0 and higher row, click Download. Repeat with Download Android Fallback.
The downloaded files are named ios_4_4_0_fallback.json and android_4_4_0_fallback.json. In the Assets/StreamingAssets folder, replace your fallback files for SDK 4.1–4.3 with the new files. Give each new file the name that your app passes to Adapty.SetFallback, or update the names in that call.
With a fallback file for SDK 4.1–4.3, Adapty.SetFallback passes an AdaptyError to its completion handler. To verify the new files, run the app on iOS and on Android, and make sure that the completion handler receives no error.
Flows require iOS 16
Starting from 4.4, flows require iOS 16 or later. Other SDK features, such as purchases, onboardings, and custom paywalls, still work on iOS 15.
On iOS 15, CreateFlowView passes an AdaptyError with the PlatformNotSupported code to its completion handler. When your app receives this error, show your own content instead of the flow, such as a custom paywall.
Flow script errors reach FlowViewDidReceiveError on Android
On Android, the flow script can throw an exception while it handles an SDK event. Starting from 4.4, this exception reaches FlowViewDidReceiveError as an AdaptyError with the JsException code, the same as on iOS. Before, the SDK only logged it.
The SDK doesn’t dismiss the view on this error. If your code in FlowViewDidReceiveError dismisses the view on every error, flows on Android now close on script errors too. To keep a flow open on a script error, don’t dismiss the view when the error code is JsException.