AppsFlyerXamarinBinding 1.3.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package AppsFlyerXamarinBinding --version 1.3.4
NuGet\Install-Package AppsFlyerXamarinBinding -Version 1.3.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AppsFlyerXamarinBinding" Version="1.3.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AppsFlyerXamarinBinding --version 1.3.4
#r "nuget: AppsFlyerXamarinBinding, 1.3.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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:

  1. Copy AppsFlyerXamarinBinding.dll into your project.

  2. On Xamarin Studio go to References and click on Edit References.

  3. Go to .Net Assembly tab and click on Browse… button.

  4. 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 Compatible and additional computed target framework versions.
Xamarin.iOS xamarinios10 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • Xamarin.iOS 1.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on AppsFlyerXamarinBinding:

Package Downloads
Oscore.AppsFlyer.Maui The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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 310 3/14/2024
6.12.1 8,956 9/5/2023
6.10.1 10,311 4/11/2023
6.9.3-beta1 1,153 2/9/2023
6.9.2 2,874 2/9/2023
6.9.2-beta1 1,055 2/9/2023
6.5.4 27,206 4/28/2022
6.4.0.3 28,321 10/24/2021
6.4.0.1 2,851 9/29/2021
6.3.2 55,590 6/29/2021
6.3.0 7,484 5/27/2021
6.2.6.1 16,057 4/29/2021
6.2.4.1 5,664 3/31/2021
6.2.4 4,869 3/21/2021
6.2.3 1,346 3/9/2021
6.2.1 4,591 2/16/2021
6.1.3.2 4,578 1/18/2021
6.1.3.1 871 1/14/2021
6.1.3 815 1/14/2021
6.1.1 7,339 11/22/2020
6.0.3 17,414 9/7/2020
6.0.2 927 9/3/2020
6.0.1.1-beta 707 8/25/2020
5.4.1 7,160 7/28/2020
5.2.0 10,206 5/7/2020
1.3.5 26,442 9/16/2019
1.3.4 30,145 5/24/2018
1.3.3 9,275 12/18/2017
1.3.2 8,322 7/26/2017
1.3.1 4,735 2/27/2017
1.3.0 2,533 12/7/2016

- AppsFlyer iOS SDK 4.8.4
- isStopTracking(BOOL) API