hashedData

Use the below functions to pass hashed(SHA-256) data(email addresses and phone numbers) to the MSDK.

  • Pass hashed data asstring into these functions.
  • Phone numbers should be hashed to string in the following format: +(country code)(phone number) Example: +13303332222.
Wunderkind.shared.trackHashedLoggedIn(email: String hashedEmail, String hashedPhone)
Wunderkind.getInstance().trackHashedLoggedIn(String hashedEmail, String hashedPhone)
Wunderkind().trackHashedLoggedInWithPhone(email: string, phone: string)
Wunderkind.trackHashedLoggedInWithPhone(email: string, phone: number)

Pass hashed data into Customer for Purchase Event.

Hashed Customer

// Hashed email
Customer customer = Customer.createCustomer(hashedEmail = String)

// Hashed Enail & Hashed Phone
Customer customer = Customer.createCustomer(hashedEmail = String, hashedPhone = String)
// Hashed email
let customer = Customer(hashedEmail: String)

// Hashed Enail & Hashed Phone
let customer = Customer(hashedEmail: String, hashedPhone: String)
// Hashed email
var customer = Customer.createHashedCustomer(hashedEmail: String);

// Hashed Enail & Hashed Phone
var customer = Customer.createHashedCustomerWithPhone(
    hashedEmail: String,
    hashedPhone: String
    );
// Hashed email
const customer = Customer.createHashedCustomer(hashedEmail: string);

// Hashed Enail & Hashed Phone
const customer = Customer.createHashedCustomerWithPhone(
    hashedEmail: string,
    hashedPhone: String
    );