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

jAnalytics

Improve this doc

This plugin does something

Repo: https://github.com/jpush/cordova-plugin-janalytics

Installation

  1. 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
    
  2. Add this plugin to your app's module

Supported platforms

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

initCrashHandler()

stopCrashHandler()

onPageStart()

onPageEnd()

addCountEvent()

addCalculateEvent()

addLoginEvent()

addRegisterEvent()

addBrowseEvent()

addPurchaseEvent()

API

Native

General