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.
Installation#
- Capacitor
- Cordova
- Enterprise
$ npm install cordova-plugin-buildinfo $ npm install @ionic-native/build-info $ ionic cap sync
$ ionic cordova plugin add cordova-plugin-buildinfo $ npm install @ionic-native/build-info
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#
ReactLearn more about using Ionic Native components in React
#
Angularimport { 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)})