App Version
Reads the version of your app from the target build settings.
Requires Cordova plugin: cordova-plugin-app-version
. For more info, please see the Cordova App Version docs.
联系我们?
If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.
Ionic 获取应用版本 App Version插件的安装(Installation)
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
Ionic 获取应用版本 App Version插件支持的平台(Supported Platforms)
- Android
- iOS
- Windows
Ionic 获取应用版本 App Version插件的用法(Usage)
import { AppVersion } from '@ionic-native/app-version/ngx';
constructor(private appVersion: AppVersion) { }
...
this.appVersion.getAppName();
this.appVersion.getPackageName();
this.appVersion.getVersionCode();
this.appVersion.getVersionNumber();