CleverTap.DotNet.Android.Binding
2.0.0
dotnet add package CleverTap.DotNet.Android.Binding --version 2.0.0
NuGet\Install-Package CleverTap.DotNet.Android.Binding -Version 2.0.0
<PackageReference Include="CleverTap.DotNet.Android.Binding" Version="2.0.0" />
<PackageVersion Include="CleverTap.DotNet.Android.Binding" Version="2.0.0" />
<PackageReference Include="CleverTap.DotNet.Android.Binding" />
paket add CleverTap.DotNet.Android.Binding --version 2.0.0
#r "nuget: CleverTap.DotNet.Android.Binding, 2.0.0"
#:package CleverTap.DotNet.Android.Binding@2.0.0
#addin nuget:?package=CleverTap.DotNet.Android.Binding&version=2.0.0
#tool nuget:?package=CleverTap.DotNet.Android.Binding&version=2.0.0
<p align="center"> <img src="https://github.com/CleverTap/clevertap-ios-sdk/blob/master/docs/images/clevertap-logo.png" width="50%"/>
</p>
CleverTap Xamarin Bindings SDK
<p> <a href="https://github.com/CleverTap/clevertap-xamarin/releases"> <img src="https://img.shields.io/github/release/CleverTap/clevertap-xamarin.svg" /> </a> </p>
π Introduction
The CleverTap Xamarin Bindings SDK for Mobile Customer Engagement and Analytics solutions.
For more information check out our website and documentation.
Supports
Xamarin Binding Library
- Android - Use the CleverTap.Bindings.Android DLL file and add it to the References. This targets Xamarin.Android apps.
- iOS - Use the DLL and add it to the Reference. This targets Xamarin.iOS apps.
.NET Binding Library
- Android - Add
CleverTap.DotNet.Android.Binding
to NuGet Packages. This targets .NET 8.0+ Android and Multi-platform App UI (MAUI) apps. - iOS - Add
CleverTap.DotNet.iOS.Binding
to NuGet Packages. This targets .NET 8.0+ iOS and Multi-platform App UI (MAUI) apps.
π Xamarin Installation and Quick Start
π¨βπ» Android Guide
Install the SDK
Use the CleverTap.Bindings.Android DLL file and add it to the References.
Add Your CleverTap Credentials in AndroidManifest.xml
<meta-data
android:name="CLEVERTAP_ACCOUNT_ID"
android:value="Your CleverTap Account ID"/>
<meta-data
android:name="CLEVERTAP_TOKEN"
android:value="Your CleverTap Account Token"/>
<meta-data
android:name="CLEVERTAP_USE_GOOGLE_AD_ID"
android:value="1"/>
- Enable Tracking by Adding Permissions
- In your AndroidManifest.xml file, add the following snippet within the <application></application> tags.
<application
android:label="@string/app_name"
android:icon="@drawable/ic_launcher"
android:name="com.clevertap.android.sdk.Application">
- Next add the snippet below in the same file, so the CleverTap Xamarin SDK can access the internet.
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
- Initialize the CleverTap SDK
CleverTapAPI cleverTapAPI = CleverTapAPI.GetDefaultInstance(Android.App.Application.Context);
For more information,
π©βπ» iOS Guide
Install the SDK
Use the DLL and add it to the Reference
Integrating the CleverTap SDK
- Follow the integration instruction starting with Step 2 here.
- Add CleverTap to your
AppDelegate.cs
and add the following snippet inFinishedLaunching
method.
using CleverTapSDK;
public bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
{
// Override point for customization after application launch.
// If not required for your application you can safely delete this method
CleverTap.AutoIntegrate();
return true;
}
For more information,
π Changelog
Refer to the CleverTap Xamarin SDK Change Log.
βQuestions
If you have questions or concerns, you can reach out to the CleverTap support team from the CleverTap Dashboard.
π License
CleverTap Xamarin SDK is MIT licensed, as found in the LICENSE file.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-android34.0 is compatible. net9.0-android was computed. net10.0-android was computed. |
-
net8.0-android34.0
- Xamarin.AndroidX.AppCompat (>= 1.6.1.7)
- Xamarin.AndroidX.Core (>= 1.12.0.4)
- Xamarin.AndroidX.Fragment (>= 1.6.2.2)
- Xamarin.AndroidX.ViewPager (>= 1.0.0.23)
- Xamarin.AndroidX.WebKit (>= 1.10.0.1)
- Xamarin.AndroidX.Work.Runtime (>= 2.9.0.1)
- Xamarin.Google.Android.Material (>= 1.10.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.