AppsFlyerXamarinBinding 1.3.4
See the version list below for details.
dotnet add package AppsFlyerXamarinBinding --version 1.3.4
NuGet\Install-Package AppsFlyerXamarinBinding -Version 1.3.4
<PackageReference Include="AppsFlyerXamarinBinding" Version="1.3.4" />
paket add AppsFlyerXamarinBinding --version 1.3.4
#r "nuget: AppsFlyerXamarinBinding, 1.3.4"
// Install AppsFlyerXamarinBinding as a Cake Addin #addin nuget:?package=AppsFlyerXamarinBinding&version=1.3.4 // Install AppsFlyerXamarinBinding as a Cake Tool #tool nuget:?package=AppsFlyerXamarinBinding&version=1.3.4
XamariniOSBinding
Xamarin Binding integration guide For iOS AppsFlyer Xamarin Binding version 1.3.4 Built with AppsFlyer iOS SDK v4.8.4
Introduction
AppsFlyer’s Xamarin binding provides application installation and events tracking functionality.
Nuget
Install-Package AppsFlyerXamarinBinding <br> https://www.nuget.org/packages/AppsFlyerXamarinBinding
Initial steps
To Embed SDK into your Application:
Copy AppsFlyerXamarinBinding.dll into your project.
On Xamarin Studio go to References and click on Edit References.
Go to .Net Assembly tab and click on Browse… button.
Locate AppsFlyerXamarinBinding.dll and chose it.
Or in visual studio go to Project > Add NuGet Package, search for 'AppsFlyer' and then add AppsFlyerXamarinBinding.
SDK Initialization
Go to your AppDelegate.cs and add:
<br>
using AppsFlyerXamarinBinding;
// class-level declarations
AppsFlyerXamarinBinding.AppsFlyerTracker tracker = AppsFlyerXamarinBinding.AppsFlyerTracker.SharedTracker();
AppsFlyerTrackerDelegate af_delegate = new AppsFlyerConversionDataDelegate();
Add the following code in the FinishedLaunching method:
public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
{
tracker.AppsFlyerDevKey = "APPSFLYER_DEV_KEY_HERE";
tracker.AppleAppID = "YOUR_APP_ID_HERE";
tracker.IsDebug = true;
return true;
}
Add the following code in the OnActivated method:
public override void OnActivated(UIApplication application)
{
tracker.TrackAppLaunch();
}
Set your appId & DevKey Replace appId & devKey with your values.
You can get your AppsFlyer DevKey on our dashboard. See “SDK integration” on your app screen.
DevKey = your unique developer ID, which is accessible from your account, e.g. rbz2mfgZQY5mSEYNTyjwni // For example:
Adding Custom Event
Example: “Add-to-cart” Event
var addToCartEvent = new NSDictionary (AFEventParameter.AFEventParamContentId, "id 123",
AFEventParameter.AFEventParamContentType, "type 1", AFEventParameter.AFEventParamCurrency,
"USD", AFEventParameter.AFEventParamDescription, "add to cart Description");
AppsFlyerTracker.SharedTracker().TrackEvent(AFEventName.AFEventAddToCart, addToCartEvent);
Conversion Data
For Conversion data your should call this method in the FinishedLaunching method:
AppsFlyerTracker.SharedTracker().LoadConversionDataWithDelegate (af_delegate);
AppsFlyerConversionDataDelegate.cs can be found here:
public class AppsFlyerConversionDataDelegate : AppsFlyerTrackerDelegate
{
public override void OnAppOpenAttribution(NSDictionary attributionData)
{
Console.WriteLine("deeplink data in xamarin = " + attributionData.Description);
}
public override void OnAppOpenAttributionFailure(NSError error)
{
}
public override void OnConversionDataReceived(NSDictionary installData)
{
Console.WriteLine("conversion data in xamarin = " + installData.Description);
}
public override void OnConversionDataRequestFailure(NSError error)
{
}
}
Opt-Out
For complete opt out of the SDK use the following method call
tracker.IsStopTracking = true;
This will prevent any data from being sent out of the AppsFlyer SDK.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
Xamarin.iOS | xamarinios10 is compatible. |
-
Xamarin.iOS 1.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AppsFlyerXamarinBinding:
Package | Downloads |
---|---|
Oscore.AppsFlyer.Maui
Professional integration of existing Xamarin binding libraries in a single cross-platform interface according to best practices. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
6.13.1 | 7,156 | 3/14/2024 |
6.12.1 | 16,716 | 9/5/2023 |
6.10.1 | 16,850 | 4/11/2023 |
6.9.3-beta1 | 1,211 | 2/9/2023 |
6.9.2 | 3,048 | 2/9/2023 |
6.9.2-beta1 | 1,117 | 2/9/2023 |
6.5.4 | 28,825 | 4/28/2022 |
6.4.0.3 | 28,481 | 10/24/2021 |
6.4.0.1 | 2,889 | 9/29/2021 |
6.3.2 | 55,811 | 6/29/2021 |
6.3.0 | 7,561 | 5/27/2021 |
6.2.6.1 | 16,251 | 4/29/2021 |
6.2.4.1 | 5,803 | 3/31/2021 |
6.2.4 | 4,908 | 3/21/2021 |
6.2.3 | 1,385 | 3/9/2021 |
6.2.1 | 4,642 | 2/16/2021 |
6.1.3.2 | 4,615 | 1/18/2021 |
6.1.3.1 | 907 | 1/14/2021 |
6.1.3 | 849 | 1/14/2021 |
6.1.1 | 7,374 | 11/22/2020 |
6.0.3 | 17,457 | 9/7/2020 |
6.0.2 | 963 | 9/3/2020 |
6.0.1.1-beta | 734 | 8/25/2020 |
5.4.1 | 7,200 | 7/28/2020 |
5.2.0 | 10,251 | 5/7/2020 |
1.3.5 | 26,500 | 9/16/2019 |
1.3.4 | 30,197 | 5/24/2018 |
1.3.3 | 9,323 | 12/18/2017 |
1.3.2 | 8,396 | 7/26/2017 |
1.3.1 | 4,787 | 2/27/2017 |
1.3.0 | 2,591 | 12/7/2016 |
- AppsFlyer iOS SDK 4.8.4
- isStopTracking(BOOL) API