📜  如何在 ionic 中检查应用程序版本 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:42.795000             🧑  作者: Mango

代码示例1
import { AppVersion } from '@ionic-native/app-version/ngx';

constructor(private appVersion: AppVersion) { }

...


this.appVersion.getAppName();
this.appVersion.getPackageName();
this.appVersion.getVersionCode();
this.appVersion.getVersionNumber();