# Start collecting telemetry

Connect your app, see its first session and lifecycle activity, then add navigation, logs, events, and handled exceptions.

Source: https://appportal.io/docs/getting-started/first-event

Connect one test build to AppPortal and find its first session in the Dashboard.

## 1. Create an app

In the [Dashboard](https://dashboard.appportal.io), select **Personal** or an organization. Choose
**Create app** (or **New app** if the organization already has apps). Give it a name and select an
environment for your test, such as `development`. After creation, select that environment and
choose **Open SDK setup**. The same app can receive telemetry from multiple platforms.

## 2. Create an SDK key

Choose your **Application framework**. Under **Initialize**, select **Manage SDK keys**,
then **Create SDK key**. Name the key, confirm your test environment and include telemetry
ingestion. Choose **Create**, copy the key, then choose **Back to app** to continue setup.
If the app already collects telemetry, open **App settings → SDK setup** to manage its keys.
If you don't have permission, ask an app owner for an SDK key for this app and environment.

## 3. Install and initialize your SDK

Follow the setup for your application's host. Initialize once at the app entry point and connect
your consent UI. Collection starts pending unless you configure an initial decision; a saved
decision takes precedence on later launches.

| Your application | Setup |
| --- | --- |
| Native Swift | [Apple SDK](https://appportal.io/docs/sdks/apple) |
| Native Kotlin | [Android SDK](https://appportal.io/docs/sdks/android) |
| C# | [Native UI](https://appportal.io/docs/sdks/dotnet/native-mobile), [MAUI](https://appportal.io/docs/sdks/dotnet/maui), [Uno](https://appportal.io/docs/sdks/dotnet/uno), or [plain managed .NET](https://appportal.io/docs/sdks/dotnet/telemetry#start-a-plain-managed-host) |
| Dart | [Flutter SDK](https://appportal.io/docs/sdks/flutter) |

## 4. Run the app and connect navigation

With consent granted, open the app, move between screens, then background and resume it.
Keep it online while verifying delivery. You can begin collecting telemetry without writing
custom user events.

- **Native Apple and Android** observe application lifecycle automatically.
- **MAUI and Uno** initialize the SDK in native startup; it owns lifecycle, app-start timing,
  and supported managed HTTP timing. Framework DI registers that existing client.
  MAUI's `UseAppPortal()` records visible primary-page visits automatically. Separate Shell
  navigation timing and manual observers are [optional](https://appportal.io/docs/sdks/dotnet/maui#observe-native-navigation-rum).
  For Uno, attach the [Frame observer](https://appportal.io/docs/sdks/dotnet/uno#4-observe-frame-navigation) once at the navigation host.
  Use the [Prism integration](https://appportal.io/docs/sdks/dotnet/prism) for navigation owned by Prism Regions.
- **Flutter** creates a session at startup. Add a [Navigator observer](https://appportal.io/docs/sdks/flutter#connect-navigation-once)
  for screen tracking; automatic lifecycle, startup, and HTTP instrumentation are not yet included.

Native Swift and Kotlin apps can report screen changes from their central navigation callback.
Your SDK guide shows how. Use one observer for each navigation surface, with stable screen
names rather than route parameters. A screen observation and a custom business event serve
different purposes; a navigation callback does not need to emit both.

## 5. Find your session

In the Dashboard, select the same app and environment, **All platforms**, and a time range
containing the test. Open **Sessions**, select your run, and open its **Session story**.
Check the app version, platform, and available lifecycle or screen entries.

A session from the test is the first delivery check. On a host with lifecycle tracking, background
and resume activity should also appear. Screen entries appear when you visit pages with automatic
tracking or connected navigation observation.
The SDK handles batching and retries, so allow time for delivery and processing. A credential's
**Last used** value alone does not establish that telemetry became queryable.

If the run is missing, follow [telemetry troubleshooting](https://appportal.io/docs/getting-started/troubleshooting).
An abruptly killed app or closed browser tab may not provide a final lifecycle callback.

## Verify one deliberate observation

To verify a specific event or crash, use the
[receipt and restart checklist](https://appportal.io/docs/getting-started/verify-first-value).

## 6. Add the context your app knows

Instrument one real operation, such as refreshing a catalog:

- **Logs** explain progress and recovery: refresh started, or cached data used.
- **Handled exceptions** preserve the failure and stack trace when your code catches an error.
- **Custom events** record outcomes you want to count, such as a successful refresh.

The SDK attaches these to the same session. Open **Logs** to search diagnostic messages,
**Crashes** to inspect handled and unhandled errors, and **Product analytics → Events** to
compare product outcomes. The session timeline brings those signals together.

Continue with [Investigate an app session](https://appportal.io/docs/guides/investigate-session) for the complete flow
and the capture examples for your SDK.

Use the [Customer Portal guide](https://appportal.io/docs/guides/customer-portal) to choose your next task.
