For the complete documentation index, see llms.txt. This page is also available as Markdown.

CRM Properties

CRM Properties are stored securely only on the Hackle server and cannot be directly retrieved through the SDK.

Phone Number Collection

For details about subscription consent status, refer to the CRM Message Subscription Consent Management documentation.

You can consent to or opt out of subscriptions per message purpose.

Use HackleSubscriptionOperationsBuilder to set the consent status for the desired properties, then perform the final update using a method like updatePushSubscriptions().

You can update the consent status per message channel.

import { HackleSubscriptionOperationsBuilder } from "@hackler/javascript-sdk";

const user = {
  userId: "143",
  deviceId: "ae2182e0",
};

const operations = new HackleSubscriptionOperationsBuilder()
  .marketing(HackleSubscriptionStatus.SUBSCRIBED)
  .information(HackleSubscriptionStatus.SUBSCRIBED)
  .build();

hackleClient.updatePushSubscriptions(operations, user);

Promotional Messages

Set the subscription consent property for promotional messages.

Informational Messages

Set the subscription consent property for informational messages.

HackleSubscriptionStatus
Description

UNKNOWN

Subscription Consent has not been given or denied (default)

SUBSCRIPTION

Explicitly opted in to receive messages

UNSUBSCRIPTION

Explicitly opted out of receiving messages

Update the push message subscription consent status for the user.

Update the Kakao Message subscription consent status for the user.

Update the text message subscription consent status for the user.

Last updated