Skip to content

Latest commit

 

History

History
93 lines (57 loc) · 2.03 KB

README.md

File metadata and controls

93 lines (57 loc) · 2.03 KB

klaviyo-sdk-capacitor-plugin

Capacitor Plugin for Klaviyo SDK

Install

npm install klaviyo-sdk-capacitor-plugin
npx cap sync

API

initSDK(...)

initSDK(options: { klaviyoKey: string; }) => Promise<{ result: boolean; }>
Param Type
options { klaviyoKey: string; }

Returns: Promise<{ result: boolean; }>


setUser(...)

setUser(options: { email: string; firstName: string; lastName: string; }) => Promise<{ result: boolean; }>
Param Type
options { email: string; firstName: string; lastName: string; }

Returns: Promise<{ result: boolean; }>


requestPushPermission()

requestPushPermission() => Promise<{ result: boolean; }>

Returns: Promise<{ result: boolean; }>


setPushToken(...)

setPushToken(options: { token: string; }) => Promise<{ token: string; }>
Param Type
options { token: string; }

Returns: Promise<{ token: string; }>


resetProfile()

resetProfile() => Promise<{ result: boolean; }>

Returns: Promise<{ result: boolean; }>