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 queried through the SDK.

Phone Number Collection

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

You can subscribe or unsubscribe by message purpose.

Use HackleSubscriptionOperations.Builder to configure the consent state for the desired properties, then finalize the update using methods like updatePushSubscriptions().

You can update the consent state per message channel.

import io.hackle.sdk.common.subscription.HackleSubscriptionOperations
import io.hackle.sdk.common.subscription.HackleSubscriptionStatus

val user = User.builder(userId)
    .build();

val subscriptions = HackleSubscriptionOperations.builder()
    .marketing(HackleSubscriptionStatus.SUBSCRIBED)   // Promotional message subscription consent
    .information(HackleSubscriptionStatus.SUBSCRIBED) // Informational message subscription consent
    .build()

hackle.app.updatePushSubscriptions(subscriptions, user)
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 Push Subscription Consent Status

Updates the user's push message subscription consent status.

Update Kakao Message Subscription Consent Status

Updates the user's Kakao message subscription consent status.

Update Text Message Subscription Consent Status

Updates the user's Text Message subscription consent status.

Last updated