klaviyo-sdk-capacitor-plugin
v2.2.1
Published
Capacitor Plugin for Klaviyo SDK
Downloads
101
Readme
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; }>