Skip to main content

Overview

This guide provides step-by-step instructions to initialize the Apptrove .NET MAUI SDK in your application.

Prerequisites

  • A .NET MAUI application with the Apptrove SDK installed
  • Access to the Apptrove Panel
  • .NET 10.0 or later

Initialization

Step 1: Retrieve SDK Key

  1. Log in to your Apptrove Panel.
  2. Select your application, click the Action button, and log in.
  3. In the Dashboard, click the SDK Integration option on the left side of the panel.
  4. Under SDK Integration, locate and copy the SDK Key.

important

Using the correct SDK key is critical. An incorrect key may cause attribution and reporting issues.


Step 2: Initialize the SDK

Initialize the Apptrove SDK in your App.xaml.cs class:

using AppTroveSDK.Maui;

public partial class App : Application
{
public App()
{
InitializeComponent();
}

protected override void OnStart()
{
base.OnStart();

string key = "xxxx-xx-4505-bc8b-xx"; // Your SDK key from Panel

var config = new AppTroveSDKConfig(key, AppTroveEnvironment.Production);
AppTroveSDK.Initialize(config);
}
}

Parameters

  • key: Your SDK key from the Apptrove Panel.
  • environment: Use Development, Production, or Testing.

Troubleshooting

IssueSolution
Incorrect SDK KeyVerify key matches Apptrove Panel
Initialization IssuesEnsure SDK is added via NuGet
Environment MismatchUse correct environment for your build

For support, contact support@trackier.com.