Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix casing again + add Android code #415

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Purchases.configure(this, "public_sdk_key", "my_app_user_id")
cleverTapDefaultInstance = CleverTapAPI.getDefaultInstance(this)

val cleverTapId = cleverTapDefaultInstance?.cleverTapID?.also {
Purchases.sharedInstance.setAttributes(mapOf("$cleverTapId" to it))
Purchases.sharedInstance.setCleverTapID(cleverTapId)
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@

String cleverTapId = cleverTapDefaultInstance.getCleverTapId();
if (cleverTapId != null) {
Map<String, String> attributes = new HashMap<String, String>();
attributes.put("$cleverTapId", cleverTapId);

Purchases.getSharedInstance().setAttributes(attributes);
Purchases.getSharedInstance().setCleverTapID(cleverTapId);
}
2 changes: 1 addition & 1 deletion docs/integrations/third-party-integrations/clevertap.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The CleverTap integration can send the CleverTap ID to CleverTap as the user ide

| Key | Description | Required |
| :------------- | :----------------------------------------------------------------------------------------------------------------------- | :------- |
| `$cleverTapId` | The [CleverTap ID](https://developer.clevertap.com/docs/concepts-user-profiles#section-identifying-a-user) for the user. | ✅ |
| `$clevertapId` | The [CleverTap ID](https://developer.clevertap.com/docs/concepts-user-profiles#section-identifying-a-user) for the user. | ✅ |

This property can be set manually, like any other [Attribute](/customers/customer-attributes). If you do not set this property, the [App User ID](/customers/user-ids) will be sent as the user identity to CleverTap.

Expand Down
Loading