Package 

Class InstallationIdProviderImpl

  • All Implemented Interfaces:
    com.appstack.attribution.InstallationIdProvider

    
    public final class InstallationIdProviderImpl
     implements InstallationIdProvider
                        

    Generates an installation-scoped UUID on first launch and persists it via StorageProvider. The plain UUID string is returned directly without further hashing.

    • Constructor Detail

      • InstallationIdProviderImpl

        InstallationIdProviderImpl(StorageProvider storage)
    • Method Detail

      • getInstallationId

         String getInstallationId()

        Returns the stable installation ID (UUID). If it does not exist yet, a new UUID is generated and persisted for future calls.

        Thread-safe: uses locking to prevent race conditions where multiple threads could generate different UUIDs simultaneously.