On this page, you will learn how to perform initial setup for .NET MAUI frontends.
Before you begin, ensure your environment meets the following requirements:
| Requirement | Minimum Version |
|---|---|
.NET | 8.0 |
Android API Level | 21 |
iOS SDK | 12 |
Go to
Experience Vitals > Overview.
Select Mobile to view all mobile frontends.
Select the frontend you want to configure.
Navigate to the Settings tab.
Under Enablement and cost control, turn on New Real User Monitoring Experience.
To enable RUM for mobile frontends at the environment level:
Experience Vitals.dynatrace.config.json file.Add the dynatrace.config.json file to the Platforms/Android/Assets directory of your project.
If you cannot find the Assets directory, create it inside the Platforms/Android directory.
Add the Dynatrace .NET MAUI NuGet package to your application.
Use the following command to add the Dynatrace dependency to your project:
dotnet add package Dynatrace.OneAgent.MAUI
For more information, please see our nuget.org page.
The start method is required for the OneAgent to initialize and capture data.
using Dynatrace.MAUI;Agent.Instance.Start();
After installing and configuring the Dynatrace .NET MAUI NuGet package, verify that data is being collected:
Open your app and perform several actions (navigate between screens, tap buttons, and make network requests).
Go to your mobile frontend in Dynatrace:
Experience Vitals > Overview.Verify that sessions and user actions appear in the data.
This data can also be analyzed directly in Grail using DQL.
It may take a few minutes for data to appear in Dynatrace after the first app launch.
After completing the initial setup, consider exploring the following topics to enhance your monitoring capabilities: