Webengage
Ionic-Native wrapper that wraps Webengage Cordova plugin for Android and iOS
Repo: https://github.com/WebEngage/cordova-plugin
Installation
- Install the Cordova and Ionic Native plugins:
$ ionic cordova plugin add cordova-plugin-webengage $ npm install --save @ionic-native/webengage@4
- Add this plugin to your app's module
Supported platforms
- Android
- iOS
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>