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

Pro

Improve this doc

This plugin enables Ionic Pro services like live updates and error monitoring

Repo: https://github.com/ionic-team/cordova-plugin-ionic

Installation

  1. Install the Cordova and Ionic Native plugins:
    $ ionic cordova plugin add cordova-plugin-ionic --save --variable APP_ID="XXXXXXXX" --variable CHANNEL_NAME="Channel"
    $ npm install --save @ionic-native/[email protected]
    
  2. Add this plugin to your app's module

Supported platforms

Usage

import { Pro, AppInfo, DeployInfo } from '@ionic-native/pro';


constructor(private pro: Pro) { }

// Get app info
this.pro.getAppInfo().then((res: AppInfo) => {
  console.log(res)
})

// Get live update info
this.pro.deploy.info().then((res: DeployInfo) => {
  console.log(res)
})

Instance Members

deploy()

Ionic Pro Deploy .js API.

enableCrashLogging()

Not yet implemented

Returns: Promise<any> Returns a promise that resolves when something happens

checkForPendingCrash()

Not yet implemented

Returns: Promise<any> Returns a promise that resolves when something happens

loadPendingCrash()

Not yet implemented

Returns: Promise<any> Returns a promise that resolves when something happens

forceCrash()

Not yet implemented

Returns: Promise<any> Returns a promise that resolves when something happens

getAppInfo()

Get information about the currently running app

Returns: Promise<any> Returns a promise that resolves with current app info

API

Native

General