How to use the ionic-native.AppVersion.getVersionCode function in ionic-native

To help you get started, we’ve selected a few ionic-native examples, based on popular ways it is used in public projects.

github NorthMcCormick / Polyonic / src / src / pages / page1 / page1.ts View on Github external
AppVersion.getPackageName().then((value) => {
      this.appPackageName = value;
      console.log(value);
    }, (error) => {
      console.error(error);
    })

    AppVersion.getAppName().then((value) => {
      this.appName = value;
      console.log(value);
    }, (error) => {
      console.error(error);
    })

    AppVersion.getVersionCode().then((value) => {
      this.appVersionCode = value;
      console.log(value);
    }, (error) => {
      console.error(error);
    })
  }
github zyra / ionic-native-playground / app / pages / main / main.ts View on Github external
output();
        }, ()=>output());

        AppVersion.getPackageName().then((data) => {
            _resolved_count++;
            package_name = data;
            output();
        }, ()=>output());

        AppVersion.getVersionNumber().then(data=>{
            _resolved_count++;
            version_number = data;
            output();
        }, ()=>output());

        AppVersion.getVersionCode().then(data=>{
            _resolved_count++;
            version_code = data;
            output();
        }, ()=>output());

    }