Skip to main content
Releases of the appstack_plugin pub.dev package, newest first. Always integrate against the latest stable release — appstack-cli review will tell you what you are on.

Flutter integration guide

Install, configure, and send your first events.
AddedChangedFixed
2026-11-20
Added
  • getAttributionParams() now returns confidence_tier (high, medium or low), the confidence of the attribution match. It isn’t returned for an organic install. iOS: it now also returns deeplink_id, the ID of the matched link, as Android already did.
  • Android: getAttributionParams() now always includes appstack_match_status, as on iOS: matched, matched_no_params, organic, skipped and not_configured are settled answers, and failed is worth re-reading later.
Changed
  • iOS: Updated the native iOS SDK to 4.8.0 (Swift Package Manager pin and the vendored AppstackSDK.xcframework), which brings deeplink_id and confidence_tier. Android: Updated the native Android SDK to 1.12.0, which brings confidence_tier and appstack_match_status.
  • Android: An organic install now returns appstack_match_status: organic and no deeplink_id, and getAttributionParams() called before configure() returns appstack_match_status: not_configured instead of an empty map. Check the status key instead of checking the map for content.
Fixed
  • Android: Fixed a rare crash (IllegalArgumentException: Service not registered) when closing the Play Store install referrer connection.
Release notes on GitHub
AddedChangedFixedRemoved
2026-11-17
This release narrows the public API and is a major version. Migration:
  • Use EventType.rawValue for the SNAKE_CASE wire value. EventType.x.name now returns the Dart enum name ("addToCart"), and code that relied on name compiles unchanged but gets the camelCase value.
  • Remove any import 'package:appstack_plugin/appstack_plugin_method_channel.dart'. To fake the plugin in tests, extend AppstackPluginPlatform with MockPlatformInterfaceMixin and set AppstackPluginPlatform.instance.
  • AppstackPlugin() no longer compiles. Call the static methods directly.
  • Remove isDebug: and endpointBaseUrl: from configure() calls. Neither had any effect. Use logLevel: 0 for verbose logging.
  • sendEvent() returns Future<void>. Stop branching on its result; await works unchanged.
  • Replace getAttributionParamsWithCallback() with await getAttributionParams(), which now waits for the attribution match on both platforms.
  • getAttributionParams() never returns null. Drop null checks and treat an empty map as “no attribution”.
Added
  • EventType.rawValue: the SNAKE_CASE value sent to the native SDKs (e.g. EventType.addToCart.rawValue → "ADD_TO_CART"). sendEvent now uses it. What reaches the native SDKs is unchanged.
Changed
  • AppstackPluginPlatform is documented as the supported way to fake the plugin in an app’s unit tests.
  • Breaking: sendEvent() returns Future<void> instead of Future<bool>. Both platforms always returned true, even when the native SDK went on to drop the event (a manual install, a disabled SDK), so the value implied a delivery guarantee it never had. React Native made the same change in 3.0.0.
  • Breaking: getAttributionParams() returns Future<Map<String, dynamic>> instead of Future<Map<String, dynamic>?>. When there is nothing to report it returns an empty map, so callers no longer need to handle both null and empty.
  • Breaking: AppstackPluginPlatform.sendEvent and AppstackPluginPlatform.getAttributionParams changed the same way, so test fakes that override them need the new return types.
  • Android: The plugin’s Android code is now written in Java and no longer applies the Kotlin Gradle Plugin. Apps on recent Flutter versions no longer see the “plugins that apply Kotlin Gradle Plugin (KGP)” warning for this plugin, and it keeps building once Android Gradle Plugin 10 removes the option to opt out of built-in Kotlin. Behavior and the Dart API are unchanged, and the plugin still builds on Flutter 3.24.
Fixed
  • Android: Attribution params could sometimes be missing. When getAttributionParams() was called shortly after configure(), it could return an empty map before the attribution match had finished, so values such as appstack_adnetwork and appstack_campaign were missed and never reached your integrations. It now waits for the match to finish before returning, as it already did on iOS.
  • iOS: configure(logLevel:) now means the same on iOS as on Android and in the docs (0=DEBUG, 1=INFO, 2=WARN, 3=ERROR). iOS mapped the numbers in the wrong order: logLevel: 0 turned logging off, the default 1 showed only errors, 2 was debug and 3 was info. iOS has no warn level, so 2 and 3 both show errors only. If you passed a logLevel to get specific iOS output, check it against the levels above.
Removed
  • Breaking: EventTypeExtension. Its name getter shadowed Dart’s built-in Enum.name, so the same expression returned "ADD_TO_CART" or "addToCart" depending on the variable’s static type and imports (for example through an Enum-typed variable, a generic helper, or import ... show EventType), and EventType.values.byName(e.name) threw. EventType.x.name is now Dart’s built-in enum name; use rawValue for the wire value.
  • Breaking: package:appstack_plugin/appstack_plugin_method_channel.dart. The method-channel implementation moved to lib/src/ and is no longer importable.
  • Breaking: the implicit public AppstackPlugin() constructor. The class is static-only.
  • Breaking: configure()’s isDebug and endpointBaseUrl parameters. Both were deprecated and had no effect. React Native removed them in 3.0.0.
  • Breaking: getAttributionParamsWithCallback(), and the appstack_plugin/attribution_params event channel behind it. It existed because Android’s getAttributionParams() used not to wait for the attribution match. Now that it does, the stream returned the same value as getAttributionParams().
Release notes on GitHub
ChangedFixed
2026-09-22
Changed
  • Updated the vendored iOS XCFramework and exact Swift Package Manager dependency to Appstack iOS SDK 4.7.2. No Dart API change is required.
Fixed
  • iOS: The automatic Apple Ads attribution event is sent only once after confirmed delivery. A failed send can be retried on a later enableAppleAdsAttribution() call with the same event ID.
Release notes on GitHub
ChangedFixed
2026-09-16
Changed
  • Updated the Appstack Android SDK dependency to 1.11.0. No Dart API or integration change is required.
    • Events include the Google Play App Set ID and its scope for partner analytics integrations when available.
    • Backend requests identify the host app and version, Appstack SDK version, and Android OS/API level in their User-Agent.
    • Attribution matching sends broader best-effort device and network context. Individual signals are SDK implementation details and may change between releases; unavailable values are omitted. No new permission or runtime prompt is introduced.
Fixed
  • Android: A native configure() call made from an Activity no longer retains that Activity for the life of the process. The supplied Context is normalised to the application context before use.
Release notes on GitHub
AddedChanged
2026-09-14
Added
  • Added AppstackPlugin.deleteUserData() on iOS and Android for GDPR/privacy deletion requests. The future completes only after the native deletion request finishes and throws when native deletion fails.
Changed
  • Updated the Appstack Android SDK dependency to 1.10.0.
  • Updated the native iOS SDK to 4.7.1, which fixes Swift 6 build errors when referencing AppstackAttributionSdk.shared or AppstackASAAttribution.shared.
Release notes on GitHub
AddedChanged
2026-09-10
Added
  • Added AppstackPlugin.handleUniversalLink(Uri, {allowedHosts}) for parsing branded-domain Appstack standard links delivered by the app’s existing Flutter link handler. It is safe before configure() and returns null for unsupported links. The result’s deeplinkId is nullable, matching both native SDKs. allowedHosts is optional hardening; omitting it parses any host except the shared Appstack ones.
Changed
  • Updated the native SDK dependencies that provide standard-link parsing: iOS 4.7.0 and Android 1.9.0.
Release notes on GitHub
ChangedFixed
2026-09-03
Changed
  • Updated the Appstack iOS SDK to 4.6.0
  • Updated the Appstack Android SDK to 1.8.0
  • Custom sendEvent() parameters are encrypted on the device before being sent. Parameter keys not in the backend’s plaintext allowlist are sealed with RFC 9180 HPKE. The allowlist is served in remote config; no app or configure() change is required, and with no config block both SDKs send plaintext as before. transaction_details, deeplink user data, identifiers and other top-level event fields are not encrypted, and revenue is extracted before encryption, so revenue reporting is unchanged. A value that cannot be sealed is omitted and the event still sends. Requires iOS 17+; on iOS 15–16 values are encrypted server-side as before. Applies at Android’s API 21 floor. No new dependency on either platform; the Android AAR grows ~36 KB.
FixedAll three are iOS SDK 4.6.0 fixes; Android is unchanged.
  • A null in sendEvent()’s parameters no longer drops the event on iOS. Nulls are omitted from the payload; nulls inside lists are kept. This matches Android’s existing behaviour.
  • sendEvent() no longer crashes on iOS when a parameter value cannot be JSON-serialized. The key is dropped and logged natively; the event sends with the rest. From Dart this covers double.nan, double.infinity and typed-data lists (Uint8List, Int32List, Int64List, Float64List). DateTime, Uri, Set and arbitrary objects are unaffected — they throw ArgumentError at the platform channel and never reach the SDK.
  • A null in the attribution match response no longer discards the whole response on iOS. One null query parameter could previously cost an install its attribution data.
No Dart API changed. sendEvent()’s doc comment now describes null handling, the parameter value types that cross the platform channel, and the encryption.Release notes on GitHub
AddedChanged
2026-08-12
Added
  • AppstackPlugin.setCustomerUserId(customerUserId) — sets or clears the customer user ID after configure(), bridging the native iOS/Android setter of the same name. Use it when a login reveals the ID; calling configure() a second time does not work, as a repeat configure() is a no-op and ignores its customerUserId. Clear it on logout so the previous user’s ID stops being attached to later events. Passing null (or a blank string) clears the stored ID — unlike configure(), which treats a blank value as “not provided” because it never clears. Safe to call at any time; last write wins.
Changed
  • Updated the Appstack iOS SDK to 4.5.0 — on iOS, getAttributionParams() no longer comes back empty: the map now always carries an appstack_match_status key reporting the attribution outcome (matched, matched_no_params, organic, skipped, failed or not_configured). Only failed is worth re-reading later; the rest are settled answers. The Dart signature is unchanged — the result is still nullable, so existing null checks keep working — but code that read an empty result as “not attributed” should switch to the status key. Treat the key as iOS-only for now: Android 1.7.0 does not add it, so an empty map still means “nothing yet” there. Also fixed on iOS: a setCustomerUserId() call made immediately after configure() is no longer overwritten by the customerUserId passed to configure(), and a blank customer user ID is treated as absent rather than sent as an empty string.
  • Updated the Appstack Android SDK to 1.7.0 — adds the native setCustomerUserId setter that AppstackPlugin.setCustomerUserId() bridges on Android. No new permission is required.
Release notes on GitHub
ChangedFixed
2026-08-06
Changed
  • Updated the Appstack iOS SDK to 4.4.1 — attribution matching now includes additional network context to improve match diagnostics.
  • Updated the Appstack Android SDK to 1.6.0 — attribution matching now includes additional device and network context to improve match accuracy, and the Play install referrer is now resolved before the match request so attribution can be determined deterministically. No new permission is required.
  • EventType.install is no longer sent when passed to sendEvent() — both native SDKs already track the install automatically, so sending it by hand previously double-counted installs. Such calls are now logged and discarded natively; the Dart call still succeeds.
Fixed
  • Android: a remotely disabled app no longer fires the attribution match request — previously enabled=false suppressed only the event POSTs, and a fresh install still called /attribution/match. A disabled app now makes no attribution network calls at all.
Release notes on GitHub
Changed
2026-07-21
Changed
  • Updated the Appstack iOS SDK to 4.4.0
  • Updated the Appstack Android SDK to 1.5.0
  • Raised the minimum supported iOS version to 15.0 (required by iOS SDK 4.4.0). This applies to both integration paths — the Swift Package Manager package (Package.swift) and the CocoaPods podspec.
Release notes on GitHub
Last modified on November 23, 2026