@mangosoft/ionic-capacitor-lotame
Ionic/Capacitor Bridge Plugin for easy usage of Lotame native iOS and Android SDK
Install
npm install @mangosoft/ionic-capacitor-lotame
npx cap sync
Example
import { MangoSoftLotame } from '@mangosoft/ionic-capacitor-lotame';
// Lotame is a singleton that must be initialized with either a single client id.
const lotameInit = await MangoSoftLotame.initialize({ clientId: <CLIENT_ID> });
console.log('Lotame initialize response: ', JSON.stringify(lotameInit));
Where
CLIENT_ID Unique Lotame Client ID.
Send Behaviors
Behavior Data is collected through this call:
const resultBehavior = await MangoSoftLotame.addBehavior({
data: { value: "value", forType: "type" }
});
Response have this format:
API
initialize(...)
initialize(options: { clientId: string; }) => Promise<IGenericResponse>
Param | Type |
---|---|
options |
{ clientId: string; } |
Returns: Promise<IGenericResponse>
addBehavior(...)
addBehavior(options: { data: any; }) => Promise<IGenericResponse>
Param | Type |
---|---|
options |
{ data: any; } |
Returns: Promise<IGenericResponse>
Interfaces
IGenericResponse
Prop | Type |
---|---|
message |
string |
data |
any |