Skip to main content

.NET MAUI Example App

A comprehensive .NET MAUI application demonstrating all Apptrove SDK features.

Overview

The MAUI SDK Simulator showcases:

  • Complete SDK integration
  • Cross-platform support (Android & iOS)
  • Production-ready C# code
  • Comprehensive logging

Features Demonstrated

FeatureDescription
SDK InitializationEnvironment config, ATT, SKAdNetwork
Event TrackingBuilt-in, custom, and revenue events
Deep LinkingSimple and deferred deep links
Push NotificationsFCM (Android) and APN (iOS) tokens
Uninstall TrackingFirebase Analytics integration

Quick Start

1. Clone Repository

git clone https://github.com/ApptroveLabs/maui-simulator.git
cd maui-simulator

2. Configure SDK

Update App.xaml.cs:

var config = new AppTroveSDKConfig("YOUR_SDK_KEY", AppTroveEnvironment.Development);

3. Build and Run

# Android
dotnet build -f net10.0-android

# iOS (macOS only)
dotnet build -f net10.0-ios

Repository Structure

maui-simulator/
├── App.xaml.cs # SDK initialization
├── Pages/
│ ├── HomePage.xaml # Main dashboard
│ ├── BuiltInEventsPage.xaml # Built-in event tracking
│ ├── CustomEventsPage.xaml # Custom event tracking
│ ├── DeepLinkingPage.xaml # Deep link testing
│ ├── ProductPage.xaml # Product display
│ ├── AddToCartPage.xaml # Cart functionality
│ └── CakePage.xaml # Product detail
├── Platforms/
│ ├── Android/
│ │ ├── MainActivity.cs # Deep link handling
│ │ └── AndroidManifest.xml
│ └── iOS/
│ ├── AppDelegate.cs # Deep link handling
│ ├── Info.plist
│ └── Entitlements.plist
└── MauiSdkSimulator.csproj

Support