AppsFlyerXamarinBindingAndroid 1.4.0
See the version list below for details.
dotnet add package AppsFlyerXamarinBindingAndroid --version 1.4.0
NuGet\Install-Package AppsFlyerXamarinBindingAndroid -Version 1.4.0
<PackageReference Include="AppsFlyerXamarinBindingAndroid" Version="1.4.0" />
paket add AppsFlyerXamarinBindingAndroid --version 1.4.0
#r "nuget: AppsFlyerXamarinBindingAndroid, 1.4.0"
// Install AppsFlyerXamarinBindingAndroid as a Cake Addin #addin nuget:?package=AppsFlyerXamarinBindingAndroid&version=1.4.0 // Install AppsFlyerXamarinBindingAndroid as a Cake Tool #tool nuget:?package=AppsFlyerXamarinBindingAndroid&version=1.4.0
XamarinAndroidBinding
Xamarin Binding integration guide For Android AppsFlyer Xamarin Binding version 1.4.0 Built with AppsFlyer Android SDK v4.8.11
#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:
Copy AppsFlyerXamarinBindingAndroid.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 AppsFlyerXamarinBindingAndroid.dll and chose it.
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
- Add the Xamarin Google Play Services - GCM Nugget to your project.
- 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" />
- 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>
- Add the following method call before "startTracking":
AppsFlyerLib.Instance.SetGCMProjectNumber(this.Application, "SenderID");
- 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 | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid80 is compatible. |
-
MonoAndroid 8.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AppsFlyerXamarinBindingAndroid:
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 | 5,171 | 7/22/2024 |
6.13.0 | 970 | 3/14/2024 |
6.12.2 | 17,837 | 9/5/2023 |
6.5.4 | 38,754 | 4/18/2022 |
6.4.0.1 | 51,064 | 9/30/2021 |
6.3.2.2 | 26,653 | 6/29/2021 |
6.3.1 | 31,929 | 5/30/2021 |
6.2.0 | 40,060 | 2/16/2021 |
6.1.3 | 4,029 | 1/11/2021 |
6.1.0.1 | 19,692 | 11/22/2020 |
5.4.1 | 35,907 | 7/27/2020 |
5.1.0 | 40,131 | 1/27/2020 |
5.0.2 | 4,276 | 12/26/2019 |
1.50.0 | 19,020 | 12/19/2018 |
1.30.0 | 18,905 | 12/18/2017 |
1.4.0 | 8,432 | 5/24/2018 |
1.2.0 | 23,682 | 12/6/2016 |
Android SDK v4.8.11