jAnalytics
This plugin does something
Repo: https://github.com/jpush/cordova-plugin-janalytics
Installation
- Install the Cordova and Ionic Native plugins:
$ ionic cordova plugin add cordova-plugin-janalytics --variable APP_KEY=YOUR_APP_KEY $ npm install --save @ionic-native/janalytics@4
- Add this plugin to your app's module
Supported platforms
- Android
- iOS
Usage
import { JAnalytics } from '@ionic-native/JAnalytics';
constructor(private jAnalytics: JAnalytics) { }
...
this.jAnalytics.functionName('Hello', 123)
.then((res: any) => console.log(res))
.catch((error: any) => console.error(error));
Instance Members
init()
This function does something
Returns: Promise<any>
Returns a promise that resolves when something happens