Skip to main content
Version: v5

Build Info

This plugin provides build information.

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

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

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.

Installation

$ npm install cordova-plugin-buildinfo 
$ npm install @awesome-cordova-plugins/build-info
$ ionic cap sync

Supported Platforms

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

Usage

React

Learn more about using Ionic Native components in React

Angular

import { BuildInfo } from '@awesome-cordova-plugins/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)
})