Skip to content

RevenueCat SDK Integration - accessing hashed user ID? #48

@katherineqian

Description

@katherineqian

Hi! I am trying to integrate RevenueCat with my existing TelemetryDeck app and adapt it for Flutter. The docs only specify instructions for iOS:

let myUserID = UIDevice.current
    .identifierForVendor?.uuidString
    ?? "unknown user"
TelemetryDeck.updateDefaultUserID(to: myUserID)

// 3.
// Set up RevenueCat with your TelemetryDeck App ID
// and the pre-hashed TelemetryDeck User ID
Purchases.configure(withAPIKey: "my_revenuecat_api_key")
Purchases.shared.attribution.setAttributes([
    "$telemetryDeckUserId": TelemetryManager.shared
        .hashedDefaultUser
        ?? "no-user",
    "$telemetryDeckAppId": telemetrydeckAppID
])

I can determine a different user ID to set as my defaultUser when configuring TelemetryDeck. However, I don't see a way to access hashedDefaultUser for passing into RevenueCat. I was wondering if this is limitation of the Flutter SDK or if there is a method I'm missing? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions