@mangosoft/ionic-capacitor-lotame
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

@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

Dependencies (0)

    Dev Dependencies (18)

    Package Sidebar

    Install

    npm i @mangosoft/ionic-capacitor-lotame

    Weekly Downloads

    3

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    41.6 kB

    Total Files

    30

    Last publish

    Collaborators

    • ernesto-licea-mango
    • kcifuentes
    • kevfarid-mango
    • camilomango
    • zerofractal