Changelog
Changelog for the Superwall Unity SDK beta.
Changelog
All notable changes to this package will be documented in this file.
[0.6.0]
Breaking Changes
- iOS: SuperwallKit now comes from Swift Package Manager instead of CocoaPods. The post-build processor adds the
https://github.com/superwall/Superwall-iOSpackage (from 4.19.1 up to the next major version) to the exported Xcode project, linksSuperwallKittoUnityFrameworkand copies SuperwallKit's resource bundle into it. It no longer writes a Podfile, so CocoaPods is no longer required. OpenUnity-iPhone.xcodeproj; Xcode resolves the package on first open or build. Projects that use other pods (for example through External Dependency Manager) keep their Podfile and workspace as before. - iOS: a Target minimum iOS Version below 15.0 is no longer raised for SuperwallKit, because Swift packages build for the app's own deployment target. The build still logs a warning; raise the target to 15.0 or the Xcode build fails to link SuperwallKit.
Fixes
- iOS: 0.4.1 and 0.5.0 required SuperwallKit 4.19.1 from CocoaPods, but SuperwallKit 4.19.0 and later aren't published there (the newest pod is 4.18.3), so
pod installfailed withNone of your spec sources contain a spec satisfying the dependency: SuperwallKit (< 5.0, >= 4.19.1)and the Xcode build couldn't link SuperwallKit. Getting it from Swift Package Manager fixes this.
Migration
- A Replace build needs no changes. An Append build over an iOS project exported by an earlier version keeps the old Podfile: the post-build processor removes its SuperwallKit pod and runs
pod install, so the workspace doesn't link SuperwallKit from both the pod and the Swift package. Ifpod installcan't run, the build logs a warning with the command to run yourself, or make a Replace build.
[0.5.0]
Enhancements
- Custom products now work with a purchase controller on iOS and Android. A custom product is one whose store is set to Custom on the Superwall dashboard, sold through your own payment system instead of the App Store or Google Play. They now reach a new
IPurchaseController.PurchaseCustomProduct(CustomProductPurchase purchase, completion)method with the product's ID, theCustomTransactionIdSuperwall generated for the purchase (send it back from your server ascustom_transaction_idto attribute the revenue), and on Android any subscription it replaces. The method has a default implementation that fails the purchase, so existing controllers compile unchanged.
Fixes
- iOS sent custom products to
PurchaseFromAppStoreas if they were App Store products, so a controller tried to buy them from StoreKit. Android failed them without reaching C#. Both now callPurchaseCustomProduct.
[0.4.1]
Enhancements
- Android: subscription replacement. When a paywall's Purchase action is set to replace an existing subscription, a custom purchase controller now receives the subscription being replaced through a new
IPurchaseController.PurchaseFromGooglePlay(productId, basePlanId, offerId, ProductReplacement replacement, completion)overload. Passreplacement.OldPurchaseTokenandreplacement.Modeto the billing flow'sSubscriptionUpdateParamsto upgrade, downgrade or switch the user's subscription instead of buying a second one. The overload has a default implementation that calls the existing four-argument method, so existing controllers compile and behave as before. Purchases without a custom controller handle the replacement automatically. EventTypegains the events SuperwallKit 4.18 and superwall-android 2.10 added:TeleportOpenandTeleportReturn(iOS), andCustomerCenterOpen,CustomerCenterClose,CustomerCenterAction,CustomerCenterSurveyResponseandCustomerCenterRefundRequest. Before, they reachedHandleSuperwallEventwith a warning and the defaultEventType.
iOS
- SuperwallKit 4.18 and later need Xcode 26 to build. The exported Xcode project no longer compiles with Xcode 16.
- SuperwallKit 4.18 and later need iOS 15. If Target minimum iOS Version is lower, the generated Podfile now uses iOS 15 so
pod installsucceeds, and the build logs a warning to raise the game's own target.
Android
LogScope.StoreKitManagernow enables the Android SDK'sbillinglog scope, which replaces the deprecatedstoreKitManager. Android billing logs reachSuperwallDelegate.HandleLogwith the scope"billing"instead of"storeKitManager".
Dependencies
- Android: pins the native SDK to 2.10.0 (was
2.8.7). View the Android SDK release notes for 2.9.0 and 2.10.0. - iOS: pins the native SDK to 4.19.1. The generated Podfile already requires SuperwallKit
>= 4.19.1, < 5.0; the CI harness now builds the bridge against exactly 4.19.1 (wasfrom: 4.12.10). View iOS SDK release notes.
[0.4.0]
Enhancements
- Custom callbacks now work on iOS and Android.
PaywallPresentationHandler.OnCustomCallbackruns when a paywall requests a callback, and the result you return drives the paywall's onSuccess/onFailure branch, with itsDatareadable ascallbacks.NAME.data.KEY. Before, the field existed but neither native bridge called it, so every callback failed straight away without reaching C#. - Added
CustomCallbackResult.Success(data)andCustomCallbackResult.Failure(data).
Breaking Changes
OnCustomCallbackis nowFunc<CustomCallback, Task<CustomCallbackResult>>, so a handler can wait on a network request without blocking the main thread. Write it as anasynclambda. If it throws, is cancelled or returns null, the paywall gets a failure.
Android
- Custom callbacks need the default in-window presentation. With
AndroidPaywallPresentation.Activity, Unity is paused while the paywall is open, so each callback fails straight away and logs an error instead of leaving the paywall waiting.
Fixes
- iOS paywalls now follow the orientations the game allows through
Screen.autorotateTo*andScreen.orientation. Before, a landscape-only game could be rotated to portrait while a paywall was open, and stayed in portrait after it closed.
Dependencies
- iOS: the generated Podfile now requires SuperwallKit
>= 4.19.1, < 5.0. 4.12.10 added the custom callback API and 4.19.1 keeps paywalls to the game's orientations. A Podfile kept by an Append build is updated, unless you changed the SuperwallKit requirement by hand.
[0.3.0]
Enhancements
- Android paywalls are now shown inside the game's activity by default, so Unity keeps running while a paywall is on screen. Before, the paywall opened in its own activity, which paused Unity's player loop. A C# purchase controller then never received the purchase request and the paywall spun forever, and every delegate callback was held until the paywall closed. Set
SuperwallOptions.Paywalls.AndroidPresentation = AndroidPaywallPresentation.Activityto keep the old behaviour.
Dependencies
- Android: bumped the
superwall-androidpin from 2.7.23 to 2.8.7, which adds the in-window paywall host, and the Google Play Billing pin from 8.0.0 to 9.1.0 to match it.androidx.activitystays at 1.10.1, so the compileSdk 35 requirement is unchanged. Games that also use Unity IAP get Billing 9.1.0 through Gradle's version resolution.
Fixes
- Android purchase controller requests that can't reach Unity now fail straight away instead of waiting for a reply that never comes. A request the native SDK has given up on is cancelled on the C# side and no longer starts a store transaction with no paywall on screen. A purchase controller that throws now replies
Failed, and each request is answered at most once. - Android
SubscriptionStatus.Activegetter serialization emitted only{ type: "active" }and dropped its entitlement set, although the setter accepted entitlements. Unity therefore readActive []after writingActive [premium], causing repeated entitlement pushes and leaving the merge guard blocked. Android now serializes the active entitlement set in the same shape as iOS. - Both native bridges serialized only 4 of the 13 fields of an
Entitlement(id, a hardcodedtype,isActive,productIds), soLatestProductId,Store,StartsAt,RenewedAt,ExpiresAt,IsLifetime,WillRenew,StateandOfferTypewere always null on the C# side even thoughDeserializeEntitlementreads them. A consumer could not tell a trial from a paid subscription, nor read an expiry or renewal state, from the entitlement. Every field is now emitted on iOS and Android with one shared vocabulary (enum case names matching the C# enums, dates as epoch milliseconds). SuperwallEventInfo.EventTypewas never populated: iOS serializedString(describing: event), which on SuperwallKit versions without aCustomStringConvertibleconformance dumps the case together with its associated values (transactionComplete(transaction: ..., product: ...)), and Android sends the snake_caserawName(transaction_complete). Neither matched theEventTypeenum, so every delegate event arrived as the defaultFirstSeenand anyswitchon it was dead. iOS now emits only the case name, and the C# parser accepts both camelCase and snake_case, logging a warning instead of failing silently when a name is still unknown.EventTypegains the members both native SDKs already emit but C# lacked (PaywallPageView,TestModeModalOpen/Close,CelExpressionResult,ErrorThrown,ReviewGranted/Denied,AttributionMatch,StripeCheckoutStart/Submit/Complete/Fail), and the two placement names whose member is spelled differently (deepLink_open→DeepLink,paywallWebviewLoad_processTerminated→PaywallWebviewProcessTerminated) are mapped explicitly.SuperwallEventInfo.Product,.Transaction,.PaywallInfo,.Errorand.RestoreTypewere never populated on either platform: the bridges forwarded onlyeventTypeand the flattenedparams. The store transaction (and with it the store transaction id) was therefore unreachable fromhandleSuperwallEvent. Both bridges now serialize the associated values of the paywall and transaction events (paywallOpen/Close/Decline,transactionStart/Abandon/Complete/Fail/Restore/Timeout,subscriptionStart,freeTrialStart,nonRecurringProductPurchase), and the C# side reads them. Transaction dates are ISO 8601 strings, matching the existingStoreTransactionmodel.
[0.2.6]
Dependencies
- Android: bumped the
superwall-androidpin from 2.7.21 to 2.7.23. Transitive dependencies are unchanged (stillandroidx.activity1.10.1 / Billing 8.0.0), so the compile SDK andminSdkrequirements of this package are unaffected. Upstream in that range:- Fixes paywall text inputs silently dropping non-Latin keyboard text (Cyrillic, Korean, Thai, emoji). The webview no longer replaces Chromium's
InputConnectionunlessisGameControllerEnabledis set, restoring composition, autocorrect, swipe typing and autofill. - Errors thrown when the user lacks billing no longer propagate to the app.
- The backend is always notified of purchased entitlements.
- Fixes paywall text inputs silently dropping non-Latin keyboard text (Cyrillic, Korean, Thai, emoji). The webview no longer replaces Chromium's
[0.2.5]
Fixes
- Android:
SuperwallSDK.androidlibno longer hardcodescompileSdkVersion 34— it now inherits the host project's compile SDK fromunity.compileSdkVersion(written intogradle.propertiesby Unity from Player Settings), with a fallback of 35. FixescheckReleaseAarMetadatafailures after superwall-android started requiring compileSdk 35+ via androidx.activity 1.10.1. - Android:
superwall-androidis now pinned to an exact version (2.7.21) instead of the floating2.+, so a Maven-side release can no longer break consumer builds overnight. The pin will be bumped deliberately with each Unity SDK release. - Android: the
kotlin-androidplugin is only applied on AGP < 9. AGP 9+ (custom gradle templates / future Unity versions) ships built-in Kotlin, and applying the external plugin there crashed Gradle evaluation (BaseExtensionremoved / duplicatekotlinextension). The module's build script now uses new-DSL-safe syntax and builds under both AGP 8.x and AGP 9. - Android:
restorePurchasesbridge callback never fired — superwall-android 2.7.x changedrestorePurchases()to returnResult<RestorationResult>, which the bridge still matched as a bareRestorationResult(bothwhenbranches were unreachable). Now unwrapped correctly. - iOS: the generated Podfile no longer hardcodes
platform :ios, '16.0'— it honors the minimum iOS version from Player Settings (fallback 15.0), so Pods build for the same deployment target as the host app and older simulators/devices stay selectable in Xcode.
CI
- The Android harness job is now a matrix over AGP 8.5.2/Gradle 8.7 and AGP 9.0.1/Gradle 9.3.1, with the harness AGP version parameterized via
-PagpVersion.
[0.2.4]
Fixes
- Fix configure result emitting an unknown error on success
- iOS
_SuperwallBridge_ShowAlertABI mismatch (3 pointers vs C#(string)) — now takes a singlealertJsonstring matching the C# extern. iOS additionally fires theonCloseCallbackIdimmediately so the pending C# callback is cleaned up. - Android
showAlertwas readingactionCallbackId/closeCallbackId, but C# emitsonActionCallbackId/onCloseCallbackId— alert callbacks never fired. Fixed. - iOS bridge: removed access to internal
Superwall.shared.options—SetLocalResourcesnow stashes the resource map and applies it viaSuperwallOptions.localResourcesduringConfigure(must be called beforeConfigureon iOS; logs a warning otherwise). - Post-build
pod installnow locatespodacross common install paths (/usr/local/bin,/opt/homebrew/bin, rbenv/asdf shims,which podunder a login shell) and runs under a login shell so user PATH from~/.zshrc/~/.bash_profileis honored. Clear manual-install instructions on failure. - Post-build
pod installnow setsLANG=en_US.UTF-8andLC_ALL=en_US.UTF-8in the subprocess so CocoaPods no longer crashes withEncoding::CompatibilityErrorwhen Unity is launched from Finder (inherits launchd's emptyLANG).
Tests
- Added
Tests/Runtime/BridgeContractTests.cscovering the async-response contract, Configure success/failure paths, and the delegate/handler payload shapes for the regressions fixed in this release.
CI
- Added
.github/workflows/native.yml— builds the iOS Swift bridge via SPM on macOS and the Android.androidlibvia Gradle on Ubuntu, on every push and PR. No Unity license required. - Added parked
.github/workflows/unity.ymlfor full game-ci Unity build + test runs, documented with the licensing secrets and wrapping-project steps needed to enable it. - CI harness scaffolding lives under
ci~/(tilde-suffixed so Unity ignores it during package import — never copied into player builds).
Compatibility
- Minimum Unity version lowered from
6000.4to6000.3.
[0.2.3]
Enhancements
Android Purchase Controller
- Android purchase controller parity with the iOS purchase controller flow
SetIntegrationAttribute/SetIntegrationAttributesnow route toSuperwall.instance.setIntegrationAttributeswithAttributionProviderparsingGetOverrideProductsByName/SetOverrideProductsByNamenow read/writeSuperwall.instance.overrideProductsByNameGetEntitlementsByProductIdsnow resolves throughentitlements.byProductIds(...)and returns serialized entitlement setConsume(token, completion)now invokes the suspendSuperwall.instance.consume(token)and reportssuccess/failedwith token or error
iOS Local Resources
SetLocalResources(Dictionary<string, string>)is now implemented on iOS — setsSuperwall.shared.options.localResources, supporting bothfile://URLs and raw paths
Fixes
- Minor issue fixes
- Fix mapping issue with skip handlers and product shape for getProducts
[0.2.2]
Breaking Changes
Configurecompletion signature changed fromAction<bool>toAction<ConfigurationResult>to match the native SDKs'Result<Unit>semantics. The result exposesIsSuccessand a typedFailedResult.Erroron failure. Android now propagates SDK init errors through this; iOS still always signals success since SuperwallKit's completion has no failure variant.
Cleanup
- Renamed asmdef files to
Superwall.*
[0.2.1]
Enhancements
New APIs
SetLocalResources(Dictionary<string, string>)— map asset names to local file paths for paywall WebViews (Android only)
Delegate Fixes
- Android: added
willRedeemLink,didRedeemLink,userAttributesDidChangedelegate callbacks - iOS: added
handleSuperwallDeepLink,userAttributesDidChangedelegate callbacks - iOS: added
ShowAlertno-op stub to prevent missing symbol crash
[0.2.0]
Android Support
- Full Android support via bundled
.androidlibGradle module — no manualmainTemplate.gradlesetup needed - Kotlin bridge compiled with Kotlin 2.0.21 to match Superwall Android SDK 2.x
- Custom
ActivityProviderfor Unity ensures paywall presentation works correctly - AndroidManifest with required activity declarations merged automatically
New APIs
Purchase(productId, callback)— programmatic purchase without a paywallGetProducts(productIds, callback)— fetch product details by IDGetAssignments(callback)— get experiment assignments without confirmingShowAlert(title, message, ...)— show alerts on the current paywallRefreshConfiguration()— force SDK config refresh
Options
- Full
SuperwallOptionsparsing on both platforms (was incomplete) - Added
PaywallOptions.UseCachedTemplatesandPaywallOptions.TimeoutAfter TestModeBehavior,NetworkEnvironment,Paywalls.*,Logging.Scopesnow properly passed to native SDKs
Delegate & Callbacks
- All
ISuperwallDelegatecallbacks now receive deserialized objects instead of null SubscriptionStatusgetter properly deserializes native state (was always returning Unknown)- All async getters (
Entitlements,CustomerInfo,PaywallInfo,PresentationResult,ConfirmedAssignment,RestorationResult) now deserialize correctly - Fixed async callback mechanism — was dropping response data, causing
Configurecompletion to always return false
iOS
- Purchase controller flow implemented with async continuations
- Integration attributes mapping implemented
- Full options parity with Android
Cleanup
- Removed legacy
com.ian_unity558.com.superwall.sdkpackage - Removed stale
EnsureAndroidGradleDependencyeditor script (replaced by.androidlib)
[0.1.1]
- Android package support
- Handler callback arguments
- More properties implemented
- Improved option support
[0.1.0]
This is the first release of <com.superwall.sdk>.
- iOS support, registering and callbacks
How is this guide?