AppsFlyerXamarinBindingAndroid 1.30.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package AppsFlyerXamarinBindingAndroid --version 1.30.0
NuGet\Install-Package AppsFlyerXamarinBindingAndroid -Version 1.30.0
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="AppsFlyerXamarinBindingAndroid" Version="1.30.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AppsFlyerXamarinBindingAndroid --version 1.30.0
#r "nuget: AppsFlyerXamarinBindingAndroid, 1.30.0"
#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 AppsFlyerXamarinBindingAndroid as a Cake Addin
#addin nuget:?package=AppsFlyerXamarinBindingAndroid&version=1.30.0

// Install AppsFlyerXamarinBindingAndroid as a Cake Tool
#tool nuget:?package=AppsFlyerXamarinBindingAndroid&version=1.30.0

XamarinAndroidBinding

Xamarin Binding integration guide For Android AppsFlyer Xamarin Binding version 1.3.0

Introduction

AppsFlyer’s Xamarin binding provides application installation and events tracking functionality

Nuget

Install-Package AppsFlyerXamarinBindingAndroid<br> https://www.nuget.org/packages/AppsFlyerXamarinBindingAndroid/

Initial steps

To Embed SDK into your Application:

  1. Copy AppsFlyerXamarinBindingAndroid.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 AppsFlyerXamarinBindingAndroid.dll and chose it.

  5. Locate GooglePlayServicesLib.dll and add it as well (for advertising Id

SDK Initialization

Go to your MainActivity.cs and add:

using Com.Appsflyer; at the top of the file.

Add the following code in the OnCreate method:

AppsFlyerLib.Instance.StartTracking (this.Application, "YOUR_DEV_KEY");

Basically, every API call for Android SDK is available here as well. For more information please refer to Appsflyer Android Integration guide.

Set your appId & DevKey Replace 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:

AppsFlyerLib.TrackEvent(this, AFInAppEventType.AddToCart, new Dictionary<string, Java.Lang.Object> { 
{AFInAppEventParameterName.ContentId, "id1234"}, 
{AFInAppEventParameterName.ContentType, "tickets"},
{AFInAppEventParameterName.Price, 123},
{AFInAppEventParameterName.Currency, "USD"},
});

Conversion Data

For Conversion data your should call this method:

AppsFlyerLib.RegisterConversionListener (this, new AppsFlyerConversionDelegate ()); 

AppsFlyerConversionDelegate.cs can be found in the sample app provided with this guide

Uninstall tracking

  1. Add the Xamarin Google Play Services - GCM Nugget to your project.
  2. Add the following permissions to your AndroidManifest.xml file:
<uses-permission android:name="android.permission.WAKE_LOCK" />
<permission android:name="your.app.name.permission.C2D_MESSAGE"
	android:protectionLevel="signature" />
<uses-permission android:name="your.app.name.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
  1. Add the following receiver to your AndroidManifest.xml file:
<receiver
   android:name="com.google.android.gms.gcm.GcmReceiver"
   android:exported="true">
   <intent-filter>
       <action android:name="com.google.android.c2dm.intent.RECEIVE" />
   </intent-filter>
</receiver>
  1. Add the following method call before "startTracking":

AppsFlyerLib.Instance.SetGCMProjectNumber(this.Application, "SenderID");

  1. Add your Server Key to AppsFlyer's dashboard.

For more information regarding how to obtain the Server Key and SenderID, please review this article : https://support.appsflyer.com/hc/en-us/articles/208004986-Android-Uninstall-Tracking

Product Compatible and additional computed target framework versions.
MonoAndroid monoandroid70 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • MonoAndroid 7.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on AppsFlyerXamarinBindingAndroid:

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.0 234 3/14/2024
6.12.2 10,193 9/5/2023
6.5.4 34,476 4/18/2022
6.4.0.1 50,610 9/30/2021
6.3.2.2 26,445 6/29/2021
6.3.1 31,890 5/30/2021
6.2.0 39,891 2/16/2021
6.1.3 3,990 1/11/2021
6.1.0.1 19,654 11/22/2020
5.4.1 35,859 7/27/2020
5.1.0 40,087 1/27/2020
5.0.2 4,030 12/26/2019
1.50.0 18,976 12/19/2018
1.30.0 18,857 12/18/2017
1.4.0 8,383 5/24/2018
1.2.0 23,615 12/6/2016

Android SDK updated to 4.8.6