Need help upgrading to Ionic Framework 4.0? Get assistance with our Enterprise Migration Services EXPLORE NOW

Webengage

Improve this doc

Ionic-Native wrapper that wraps Webengage Cordova plugin for Android and iOS

Repo: https://github.com/WebEngage/cordova-plugin

Installation

  1. Install the Cordova and Ionic Native plugins:
    $ ionic cordova plugin add cordova-plugin-webengage
    $ npm install --save @ionic-native/webengage@4
    
  2. Add this plugin to your app's module

Supported platforms

Usage

import { Webengage, WebengageUser, WebengagePush, WebengageNotification } from '@ionic-native/webengage';


constructor(private webengage: Webengage, private webengageUser: WebengageUser, private webengagePush: WebengagePush, private webengageNotification: WebengageNotification ) { }

...

this.webengage.engage();

Instance Members

engage(config)

Initializes WebEngage SDK

Param Type Details
config any

Optional

Returns: Promise<any>

options(key, value)

Sets WebEngage SDK configuration

Param Type Details
key string
value any

Returns: Promise<any>

track(eventName, attributes)

Tracks event

Param Type Details
eventName string
attributes any

Optional

Returns: Promise<any>

screen(eventName, screenData)

Tracks screen

Param Type Details
eventName string
screenData any

Optional

Returns: Promise<any>

API

Native

General