Skip to main content

Get Install ID

The install ID is a unique UUID the SDK creates on first launch and stores on the device. It identifies this app install (not your login user ID). Use it for S2S events (tr_id), support/QA matching, and joining first-party data.

MethodReturns
AppTroveSDK.GetAppTroveId()Install ID (Task<string>)
note

Call this after AppTroveSDK.Initialize(config).

Usage

using AppTroveSDK.Maui;

// After AppTroveSDK.Initialize(config)
var installId = await AppTroveSDK.GetAppTroveId();
Console.WriteLine($"Install ID: {installId}");
// Send to your backend for S2S tr_id

Use cases

1. Server-to-Server (S2S) events

Pass the install ID as tr_id on S2S Events:

{
"app_token": "abcf2270-XXXX-XXXX-XXXX-34903c6e1d53",
"tr_id": "5da45091-XXXX-XXXX-XXXX-b2a1587e0d8b",
"event_id": "sEMWSCTXeu"
}

Flow: initialize SDK → GetAppTroveId() → send to backend → backend uses it as tr_id.

2. Support and QA

Log the install ID and search Logs → Install Logs by that ID.

3. Join with your user ID

Use your account ID via user-data APIs and GetAppTroveId() for the install. Do not use the install ID alone as a lifelong account key.

Find it in the panel

  1. Open LogsInstall Logs
  2. Open an install
  3. Copy the ID

Best practices

  • Initialize the SDK before reading the ID
  • Sync the ID to your backend when you need S2S
  • Expect a new ID after app reinstall

Troubleshooting

IssueCheck
Empty IDSDK not initialized, or called too early
S2S not matchingConfirm tr_id equals GetAppTroveId()

Support