getInstallId()

Get the device's install ID — a stable identifier used for GDPR data access and deletion requests.

Method Signature#

Mobana.getInstallId(): Promise<string>

Usage#

const installId = await Mobana.getInstallId();
// e.g. "a3f8c2d1-4b5e-4c3a-9f1e-2b3c4d5e6f7a"

Behavior#

  • Generated on first launch: A random UUID (v4) is created the first time the SDK runs and persisted in AsyncStorage.
  • Stable across sessions: Returns the same value for the lifetime of the install.
  • Available before init(): Can be called at any point — does not require the SDK to be initialized.
  • Cleared on reset(): Calling reset() removes the stored ID. The next call to getInstallId() generates a fresh UUID.

GDPR Data Access#

The install ID is the identifier Mobana uses server-side to associate attribution and conversion records with a device. Use it to build a data access screen or to include in deletion requests to [email protected]:

PrivacySettings.tsx
// In your privacy settings or support screen
async function handleDataAccessRequest() {
  const installId = await Mobana.getInstallId();
  const { attribution } = await Mobana.getAttribution();

  return {
    installId,
    attribution, // UTM source/medium/campaign — or null if no match
  };
}

The install ID is a random UUID with no PII attached. It can only be linked to a person if you associate it yourself (e.g. by storing it alongside a user account). See the GDPR Compliance guide for a full consent and data subject rights implementation.

AI agents: for complete Mobana SDK & API documentation, get full context here or visit llms.txt