Skip to main content
Despia uses Apple’s IDFV for device indexing, which resets when all apps from the same developer are uninstalled. Persistent identity across installs is coming soon through Despia’s new Identity Vault and requires integration with Despia’s ATT Manager for Apple compliance.

Lovable Prompt

Access the unique device identifier of native mobile devices in your application using the Despia SDK from: https://www.npmjs.com/package/despia-nativeFirst, install the package: npm install despia-nativeThen import it: import despia from 'despia-native'
  1. Import the Despia SDK in your component
  2. Access the unique device identifier using despia.uuid
  3. Display the device ID in your UI
  4. Send the device ID to your backend to link with user accounts
This feature requires native capabilities which will be fully provided by the “despia-native” npm package, no additional native libraries are needed!
Please follow the installation instructions for the “despia-native” npm package closely, and do not modify my instructions. Implementation as mentioned is critical.
How it works: The Despia SDK provides access to a unique device identifier through despia.uuid. This persistent ID helps you track devices, prevent account sharing, and manage user sessions across your mobile application.

Installation

Install the Despia package from NPM:

Usage

1. Import the SDK

2. Get Device ID

Access the Device ID from the despia.uuid variable:

Backend Integration

Resources

  • NPM Package
  • View full NPM documentation for additional configuration options

Lovable Integration

This SDK is optimized for Lovable’s prompt-based AI builder, enabling quick integration of device identification into your generated apps. For additional support or questions, please contact our support team at support@despia.com