flutter_meta_appads_sdk 2.4.0
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:
kotlinOptionsfor 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=truefollowing the app migration guide.
2.3.0 #
- Added Web support using Meta Pixel.
- Added
initWebPixel(...)to initialize Meta Pixel from Dart without changinginitSdk(). - 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
UIScenelifecycle (Flutter migration guide).- Plugin now conforms to
FlutterSceneLifeCycleDelegateand is registered viaaddSceneDelegatein addition toaddApplicationDelegate, so it works on hosts whether or not they have migrated toUIScene. - Captures launch URL info from
scene(_:willConnectTo:options:)and forwardsscene(_:openURLContexts:)to the Meta SDK (replacing the legacyapplication(_:open:options:)path on UIScene-based apps). - Forwards Universal Links to the Meta SDK from both
application(_:continue:restorationHandler:)andscene(_:continue:)automatically (no AppDelegate changes required).
- Plugin now conforms to
- iOS: URL opens that occur after
initSdk()are now forwarded toFBSDKCoreKit.ApplicationDelegateimmediately (previously only the launch URL was delivered, so attribution-related custom-scheme opens during a running session were dropped). AllUIOpenURLContextentries delivered in a singlescene(_:openURLContexts:)call are now processed (previously only the first was used). - iOS SPM: Updated
ios/flutter_meta_appads_sdk/Package.swiftto add the generatedFlutterFrameworkpackage 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 forFlutterSceneLifeCycleDelegate/addSceneDelegate). - Bumped Meta SDK versions:
- Android: Facebook SDK 18.1.3 → 18.2.3 (thread-safety fixes in
FetchedAppGateKeepersManager/AttributionIdentifiers,SecureRandomreplacesjava.util.Random, deprecatedCookieSyncManagerremoved,Build.VERSION.SDK_INTguard 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.
- Android: Facebook SDK 18.1.3 → 18.2.3 (thread-safety fixes in
- Thanks to @Gramatton for contributing the
UIScenelifecycle 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
setAutoLogAppEventsEnabledplease 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 #
- Added
setDataProcessingOptionsplease refer to Meta documentation on this function.
1.0.3 #
- Added
setAdvertiserIDCollectionEnabledplease refer to Meta documentation on this function. - Added
setAdvertiserTrackingEnabledthis is for iOS in older version >(iOS 17) refer to Meta documentation on this function. - New parameter
enableLoggingininitSdkfor 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.