Search docs/
Getting StartedPlugins

Build Info

This plugin provides build information.

https://github.com/lynrin/cordova-plugin-buildinfo

Stuck on a Cordova issue?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Contact Us Today!

Installation

ionic cordova plugin add cordova-plugin-buildinfonpm install @ionic-native/build-infonpm install cordova-plugin-buildinfonpm install @ionic-native/build-infoionic cap sync
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us

Supported Platforms

  • Android
  • iOS
  • Windows
  • macOS
  • browser
  • Electron

Usage

React

See here.

Angular

import { BuildInfo } from '@ionic-native/build-info/ngx';

this.platform.ready().then(() => {
    console.log('BuildInfo.baseUrl        =' + BuildInfo.baseUrl)
    console.log('BuildInfo.packageName    =' + BuildInfo.packageName)
    console.log('BuildInfo.basePackageName=' + BuildInfo.basePackageName)
    console.log('BuildInfo.displayName    =' + BuildInfo.displayName)
    console.log('BuildInfo.name           =' + BuildInfo.name)
    console.log('BuildInfo.version        =' + BuildInfo.version)
    console.log('BuildInfo.versionCode    =' + BuildInfo.versionCode)
    console.log('BuildInfo.debug          =' + BuildInfo.debug)
    console.log('BuildInfo.buildType      =' + BuildInfo.buildType)
    console.log('BuildInfo.flavor         =' + BuildInfo.flavor)
    console.log('BuildInfo.buildDate      =' + BuildInfo.buildDate)
    console.log('BuildInfo.installDate    =' + BuildInfo.installDate)
})