Capacitor Plugin for Klaviyo SDK
npm install klaviyo-sdk-capacitor-plugin
npx cap sync
initSDK(options: { klaviyoKey: string; }) => Promise<{ result: boolean; }>
Param | Type |
---|---|
options |
{ klaviyoKey: string; } |
Returns: Promise<{ result: boolean; }>
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() => Promise<{ result: boolean; }>
Returns: Promise<{ result: boolean; }>
setPushToken(options: { token: string; }) => Promise<{ token: string; }>
Param | Type |
---|---|
options |
{ token: string; } |
Returns: Promise<{ token: string; }>
resetProfile() => Promise<{ result: boolean; }>
Returns: Promise<{ result: boolean; }>