Skip to main content

appstack_plugin 3.1.0 copy "appstack_plugin: ^3.1.0" to clipboard
appstack_plugin: ^3.1.0 copied to clipboard

Track events and revenue with Apple Search Ads attribution for Flutter apps. Supports iOS 15.0+ and Android 5.0+.

Changelog #

All notable changes to the Appstack Flutter Plugin will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased] #

3.1.0 - 2026-11-18 #

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.

3.0.0 - 2026-11-12 #

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().

2.10.1 - 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.

2.10.0 - 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.

2.9.0 - 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.

2.8.0 - 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.

2.7.0 - 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.

Fixed #

All 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.

2.6.0 - 2026-08-11 #

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.

2.5.0 - 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.

2.4.0 - 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.

2.2.2 - 2026-06-24 #

Changed #

  • Updated the Appstack iOS SDK to 4.3.1

2.2.1 - 2026-06-17 #

Changed #

  • Updated the Appstack Android SDK to 1.4.1

2.2.0 - 2026-06-05 #

Added #

  • Updated the Appstack iOS SDK to 4.2.1

2.1.1 - 2026-05-19 #

Fixed #

  • Synced iOS native implementation across all integration paths (CocoaPods and SPM): the SPM source copies of AppstackPlugin.swift were stale and missing customerUserId, wrapperVersion, and the attribution event channel, causing an undefined symbol error at build time.

2.1.0 - 2026-05-19 #

Added #

  • wrapperVersion is now automatically passed to the native iOS and Android SDKs on configure, identifying the Flutter wrapper version (e.g. flutter-2.1.0). This is handled internally and not exposed to the public API.

2.0.6 - 2026-04-23 #

Added #

  • Updated the Appstack iOS SDK to 4.0.5

2.0.5 - 2026-04-20 #

Added #

  • New getAttributionParamsWithCallback() method — retrieves attribution parameters via a push-style stream backed by a native background thread (Swift Task.detached on iOS, Thread on Android). The stream emits one value then closes. Use this as an alternative to getAttributionParams() when attribution retrieval time may vary.

2.0.4 - 2026-04-08 #

Added #

  • Updated the Appstack iOS SDK to 4.0.4

2.0.3 - 2026-04-08 #

Added #

  • Updated the Appstack iOS SDK to 4.0.2

2.0.2 - 2026-02-10 #

Added #

  • Updated the supported version of flutter

2.0.1 - 2026-02-10 #

Added #

  • Updated the iOS SDK to 4.0.1

2.0.0 - 2026-02-08 #

Added #

  • Updated the iOS SDK to 4.0.0

1.6.2 - 2026-02-08 #

Added #

  • Updated the iOS SDK to 3.6.2

1.6.1 - 2026-02-08 #

Added #

  • Updated the iOS SDK to 3.6.1

1.6.0 - 2026-02-04 #

Added #

  • Updated the iOS SDK to 3.6.0

1.5.1 - 2026-01-28 #

Added #

  • Updated the Android SDK to 1.3.1
  • Updated the iOS SDK to 3.5.1
  • Add the support of customer_user_id in configure method

1.5.0 - 2026-01-28 #

Added #

  • Updated the Android SDK to 1.3.0
  • Updated the iOS SDK to 3.5.0

1.4.1 - 2026-01-15 #

Added #

  • Fix some bugs linked to Apple Search Ads attribution (upgrade to iOS 3.3.1)

1.4.0 - 2026-01-14 #

Added #

  • Rollback some buggy modifications of 3.2.0 (upgrade to 3.3.0)

1.3.0 - 2026-01-02 #

Added #

  • New securities on iOS (upgrade to 3.2.0)

1.2.0 - 2025-12-15 #

Added #

  • New matching method on Android (upgrade to 1.2.2)
  • New securities on iOS (upgrade to 3.1.1)

1.1.0 - 2025-12-09 #

Added #

  • New getAttributionParams() method to retrieve attribution parameters from the SDK
  • Updated iOS and Android SDK references to latest versions with attribution params support
  • Added attribution params display in sample app

1.0.4 - 2025-12-04 #

Fixed #

  • Updated the iOS SDK dependencies (SPM & Pods static files) to 3.0.2.

1.0.3 - 2025-11-25 #

Fixed #

  • Updated the way we are handling the methods on iOS to ensure we are avoiding crashes & threads hanging

1.0.2 - 2025-11-17 #

Fixed #

  • Updated SPM plugin code to use parameters map instead of deprecated revenue parameter in sendEvent method

1.0.1 - 2025-11-17 #

Fixed #

  • Fixed iOS SDK version reference to use 3.0.0 instead of 2.5.0, resolving compilation errors with sendEvent parameters and isSdkDisabled method

1.0.0 - 2025-11-14 #

Changed #

  • BREAKING CHANGE: Modified sendEvent() method to accept parameters map instead of revenue parameter
  • Updated iOS SDK reference to 3.0.0
  • Updated Android SDK reference to 1.0.0
  • Both SDK versions now use parameters dictionary for event data instead of separate revenue parameter
  • Updated all examples and documentation to use the new parameters-based API

Migration Guide #

// Old API (deprecated)
await AppstackPlugin.sendEvent(EventType.purchase, revenue: 29.99);

// New API (current)
await AppstackPlugin.sendEvent(EventType.purchase, parameters: {'revenue': 29.99, 'currency': 'USD'});

0.0.14 - 2025-10-31 #

Changed #

  • Modified configure() method to return Future<void> instead of Future<bool>
  • Updated documentation and examples to reflect the void return type
  • Add a method isSdkDisabled() to see the value configured in the iOS or the Android SDK

0.0.13 - 2025-10-29 #

Added #

  • New getAppstackId() method to retrieve the unique Appstack ID for the current user
  • Updated example app to demonstrate the new getAppstackId() functionality
  • Comprehensive test coverage for the new method across all platform layers
  • Retrieve IDFA automatically on iOS

Changed #

  • Updated iOS native implementation to expose getAppstackId() from AppstackSDK
  • Updated Android native implementation to expose getAppstackId() from AppstackSDK
  • Enhanced documentation with usage examples for the new method

0.0.12 - 2025-10-17 #

  • IMPORTANT : Add the support to be able to install the SDK with CocoaPods
  • WARNING : This support feature will be removed as soon as this ticket will be completed and we will go back to SPM usage to have a much cleaner repository (deprecation on flutter's side of cocoapods)

0.0.11 - 2025-10-16 #

  • Update the documentation to reference the SPM setup needed to make works the SDK

0.0.10 - 2025-10-15 #

  • Update the changelog for 0.0.9 and 0.0.10 to avoid having a reduced score on pub.dev

0.0.9 - 2025-10-15 #

  • Update the iOS SDK reference to 2.5.0 (use the new automatic releases for iOS)

0.0.8 - 2025-10-06 #

Fixed #

  • Clean the bundling of the iOS Appstack SDK (using SPM / GitHub refs)

0.0.7 - 2025-10-06 #

Fixed #

  • Fixed some bugs due to the cleanup

0.0.6 - 2025-10-06 #

Fixed - DEPRECATED #

  • Fixed some bugs due to the cleanup

0.0.5 - 2025-10-06 #

Fixed - DEPRECATED #

  • Did some cleanup to do easier maintenances on the SDK

0.0.4 - 2025-10-06 #

Fixed #

  • Match in a better way what is expected for Swift Package Manager handling

0.0.3 - 2025-10-06 #

Added #

  • Example documentation necessary for pub.dev points completion
  • Formatting using dart format .
  • add Package.swift to handle Swift Package Manager

0.0.2 - 2025-10-06 #

Added #

  • Automatic release CD for the appstack_plugin

0.0.1 - 2025-10-06 #

Added #

  • Initial release of Appstack Flutter Plugin
  • Support for iOS (14.3+) and Android (API 21+)
  • Event tracking with sendEvent() method
  • Revenue tracking for purchase events
  • Apple Search Ads attribution support on iOS
  • Comprehensive EventType enum with standard attribution events
  • Debug mode and custom log levels
  • Custom endpoint URL support
  • Simple, clean API following Flutter best practices

Features #

  • iOS Integration: Full support for Apple Search Ads attribution
  • Android Integration: Google Play Store attribution support
  • Event Types:
    • Lifecycle: install, login, signUp, register
    • Monetization: purchase, addToCart, addToWishlist, initiateCheckout, startTrial, subscribe
    • Gaming: levelStart, levelComplete
    • Engagement: tutorialComplete, search, viewItem, viewContent, share
    • Custom: custom events with custom names
  • Configuration Options: Debug mode, log levels, custom endpoints
  • Documentation: Complete README and USAGE guide

Technical Details #

  • Minimum iOS version: 14.3
  • Minimum Android SDK: 21 (Android 5.0)
  • Flutter SDK: 3.3.0+
  • Dart SDK: 3.9.2+
  • Dependencies:
    • iOS: AppstackSDK ~> 2.0
    • Android: tech.appstack.android-sdk:appstack-android-sdk:0.0.12
0
likes
160
points
2.47k
downloads

Documentation

API reference

Publisher

verified publisherappstack.tech

Weekly Downloads

Track events and revenue with Apple Search Ads attribution for Flutter apps. Supports iOS 15.0+ and Android 5.0+.

Homepage
Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on appstack_plugin

Packages that implement appstack_plugin