flutter_meta_appads_sdk 2.4.0 copy "flutter_meta_appads_sdk: ^2.4.0" to clipboard
flutter_meta_appads_sdk: ^2.4.0 copied to clipboard

This Flutter plugin provides a simple interface to interact with the Meta SDK. It allows you to initialize the SDK, set user data (Advanced Attribution), and log events/purchases.

2.4.0 #

  • Android: Migrated to built-in Kotlin support. The plugin no longer applies the Kotlin Gradle Plugin (KGP) on AGP 9+ hosts, where AGP compiles the Kotlin sources natively.
  • Android: Maintained backward compatibility with hosts on AGP < 9 — the plugin applies KGP only when the host's AGP version is lower than 9, so apps using the legacy KGP setup keep building unchanged, with any KGP version (Kotlin compiler options are configured through each setup's supported DSL: kotlinOptions for legacy KGP, kotlin.compilerOptions {} for AGP 9+ built-in Kotlin; jvmTarget unchanged at 1.8).
  • Example app: Migrated to AGP 9.1.0, Gradle 9.3.1, and android.builtInKotlin=true following the app migration guide.

2.3.0 #

  • Added Web support using Meta Pixel.
  • Added initWebPixel(...) to initialize Meta Pixel from Dart without changing initSdk().
  • Added Web setup documentation for Pixel initialization and event tracking.
  • Documented iOS support for both CocoaPods and Swift Package Manager.

2.2.0 #

  • iOS: Adopted Apple's UIScene lifecycle (Flutter migration guide).
    • Plugin now conforms to FlutterSceneLifeCycleDelegate and is registered via addSceneDelegate in addition to addApplicationDelegate, so it works on hosts whether or not they have migrated to UIScene.
    • Captures launch URL info from scene(_:willConnectTo:options:) and forwards scene(_:openURLContexts:) to the Meta SDK (replacing the legacy application(_:open:options:) path on UIScene-based apps).
    • Forwards Universal Links to the Meta SDK from both application(_:continue:restorationHandler:) and scene(_:continue:) automatically (no AppDelegate changes required).
  • iOS: URL opens that occur after initSdk() are now forwarded to FBSDKCoreKit.ApplicationDelegate immediately (previously only the launch URL was delivered, so attribution-related custom-scheme opens during a running session were dropped). All UIOpenURLContext entries delivered in a single scene(_:openURLContexts:) call are now processed (previously only the first was used).
  • iOS SPM: Updated ios/flutter_meta_appads_sdk/Package.swift to add the generated FlutterFramework package dependency when Flutter provides it. This keeps Swift Package Manager builds compatible with Flutter 3.41+ while preserving support for Flutter 3.38.x, where that generated package is not present.
  • Bumped minimum Flutter constraint to >=3.38.0 (required for FlutterSceneLifeCycleDelegate / addSceneDelegate).
  • Bumped Meta SDK versions:
    • Android: Facebook SDK 18.1.3 → 18.2.3 (thread-safety fixes in FetchedAppGateKeepersManager/AttributionIdentifiers, SecureRandom replaces java.util.Random, deprecated CookieSyncManager removed, Build.VERSION.SDK_INT guard before AdServices APIs, deep link referrer support). No public API changes.
    • iOS: FBSDKCoreKit 18.0.1 → 18.0.3 (reintroduced fast app switching in 18.0.2, anonymous deferral deeplink support in 18.0.3). No public API changes.
  • Thanks to @Gramatton for contributing the UIScene lifecycle support, URL forwarding fixes, Meta SDK updates, and the rest of the 2.2.0 release work in #7.

2.1.0+1 #

  • Update readme (thanks @ltOgt)

2.1.0 #

  • Added Swift Package Manager (SPM) support for iOS as an alternative to CocoaPods
  • Maintained full backward compatibility with CocoaPods
  • Example project demonstrating SPM integration available in example_spm/ folder

2.0.1 #

  • Fix missing format on different files (fixinig pub points on pub.dev).

2.0.0 #

  • BREAKING CHANGE: Migrated from protobuf to Pigeon for better type safety and performance
  • Removed protobuf dependency and all related files
  • Improved communication between Flutter and native platforms
  • Better error handling and type safety
  • Maintained backward compatibility for public API
  • Updated build system to use Pigeon code generation
  • Fixed currency handling in logPurchase for Android
  • Added eventParameter support in logPurchase for both platforms
  • Added full support for externalId (FBUserDataType.externalId) on Android platform for advanced matching and cross-device tracking
  • Improved logging and error messages
  • Meta SDK versions:
    • Android: Facebook SDK 18.1.3
    • iOS: FBSDKCoreKit 18.0.1

1.2.0 #

  • Added setAutoLogAppEventsEnabled please refer to Meta Guidelines on this function. (Thanks to @Gramatton)
  • Upgrade Facebook SDK to 18.0.1 (Android) and 18.0.0 (iOS). (Thanks to @Gramatton)
  • Changed protobuf-java to protobuf-javalite for increased performance. (Thanks to @Gramatton)

1.1.3 #

  • Fix dangling methodchannel method on Android (thanks to @davidnunes19)

1.1.2 #

  • Fix dangling doc

1.1.1 #

  • Changes for pub.dev pub points score

1.1.0 #

  • Refactor: Reduce external visibility of exposed Protobuf objects.
  • Added documentation to exposed methods and objects
  • Fix logging issue (not showing logs via logcat) in android integration.

1.0.4 #

1.0.3 #

  • Added setAdvertiserIDCollectionEnabled please refer to Meta documentation on this function.
  • Added setAdvertiserTrackingEnabled this is for iOS in older version >(iOS 17) refer to Meta documentation on this function.
  • New parameter enableLogging in initSdk for enabling/disabling console logging.

1.0.2 #

  • Allow less restrictive Dart SDK version (3.4.0).

1.0.1 #

  • Some changes for pub.dev score.

1.0.0 #

  • First initial version.
  • iOS SDK 17.4.0.
  • Android SDK 17.0.2.
13
likes
160
points
1.25k
downloads

Documentation

API reference

Publisher

verified publishersergio.durban.cat

Weekly Downloads

This Flutter plugin provides a simple interface to interact with the Meta SDK. It allows you to initialize the SDK, set user data (Advanced Attribution), and log events/purchases.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on flutter_meta_appads_sdk

Packages that implement flutter_meta_appads_sdk