Open the terminal of your chosen IDE and run the following:
flutter pub add appsflyer_sdk
This will download the AppsFlyer flutter plugin to your project, you may observe the changes in your pubspec.yaml file.
Huawei Referrer is supported in SDK v6.14.0 and above. Due to changes in the Huawei AppGallery store, previous versions of the AppsFlyer SDK are not able to fetch the referrer from the store. Learn more.
Starting from version 6.2.4-nullsafety.5, the iOS SDK comes in two variants: Strict mode and Regular mode. Please read more: https://support.appsflyer.com/hc/en-us/articles/207032066#integration-strict-mode-sdk
Change to Strict mode
After you installed the AppsFlyer plugin:
-
Go to the
$HOME/.pub-cache/hosted/pub.dartlang.org/appsflyer_sdk-<CURRENT VERSION>/iosfolder -
Open
appsflyer_sdk.podspec, add/Strictto thes.ios.dependencyas follow:s.ios.dependency 'AppsFlyerFramework', '6.x.x'tos.ios.dependency 'AppsFlyerFramework/Strict', '6.x.x'and save. -
Go to the
iosfolder of your current project and runpod update.
Change to Regular mode
After you installed the AppsFlyer plugin:
-
Go to the
$HOME/.pub-cache/hosted/pub.dartlang.org/appsflyer_sdk-<CURRENT VERSION>/iosfolder: -
Open
appsflyer_sdk.podspecand remove/Strict: changes.ios.dependency 'AppsFlyerFramework/Strict', '6.x.x'tos.ios.dependency 'AppsFlyerFramework', '6.x.x'and save. -
Go to the
iosfolder of your current project and runpod update.