appsflyer_sdk 6.2.4+1-beta-nullsafety copy "appsflyer_sdk: ^6.2.4+1-beta-nullsafety" to clipboard
appsflyer_sdk: ^6.2.4+1-beta-nullsafety copied to clipboard

outdated

A Flutter plugin for AppsFlyer SDK. Supports iOS and Android.

appsflyer_sdk #

A Flutter plugin for AppsFlyer SDK.

pub package Coverage

πŸ›  In order for us to provide optimal support, we would kindly ask you to submit any issues to support@appsflyer.com

When submitting an issue please specify your AppsFlyer sign-up (account) email , your app ID , reproduction steps, logs, code snippets and any additional relevant information.


Table of content #

Supported Platforms #

  • Android
  • iOS 8+

This plugin is built for #

  • iOS AppsFlyerSDK v6.2.4

  • Android AppsFlyerSDK v6.2.0

Flutter 2.0 is supported from version 6.2.3+2, including null safety support! #

The version 6.2.4-flutterv1 will use iOS SDK V6.2.4 with Flutter V1 #


❗Migration Guide to v6 #

In v6 of AppsFlyer SDK there are some api breaking changes:

Before v6 v6
trackEvent logEvent
stopTracking stop
validateAndTrackInAppPurchase validateAndLogInAppPurchase
Before v6.1.2+4 v6.1.2+4
validateAndTrackInAppPurchase validateAndTrackInAppIosPurchase/validateAndTrackInAppAndroidPurchase

Important notice #

  • Switch ConversionData and OnAppOpenAttribution to be based on callbacks instead of streams since plugin version 6.0.5+2

πŸ“² Getting started #

In order to install the plugin, visit this page.

βš™οΈ AppsFlyerOptions #

To start using AppsFlyer you first need to create an instance of AppsflyerSdk before using any other of our sdk functionalities.

AppsflyerSdk receives a map or AppsFlyerOptions object. This is how you can configure our AppsflyerSdk instance and connect it to your AppsFlyer account.

Example (using map):

import 'package:appsflyer_sdk/appsflyer_sdk.dart';
//..

Map appsFlyerOptions = { "afDevKey": afDevKey,
                "afAppId": appId,
                "isDebug": true};

AppsflyerSdk appsflyerSdk = AppsflyerSdk(appsFlyerOptions);

πŸš€ Initializing the SDK #

The next step is to call initSdk which have the optional boolean parameters registerConversionDataCallback, registerOnAppOpenAttributionCallback and registerOnDeepLinkingCallback which are set to true as default.

After we call initSdk we can use all of AppsFlyer SDK features.

Initialize the SDK to enable AppsFlyer to detect installations, sessions (app opens) ,updates and use all of our features.

appsflyerSdk.initSdk(
    registerConversionDataCallback: true,
    registerOnAppOpenAttributionCallback: true,
    registerOnDeepLinkingCallback: true
);

πŸ“– Guides #

Great installation and setup guides can be viewed here

πŸ“‘ API #

see the full API available for this plugin.

135
likes
0
points
408k
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for AppsFlyer SDK. Supports iOS and Android.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on appsflyer_sdk