ionic cordova version check code example
Example 1: ionic is web check
this.isApp = (!document.URL.startsWith(‘http’) || document.URL.startsWith(‘http://localhost:8080’));
Example 2: how to check app version in ionic
import { AppVersion } from '@ionic-native/app-version/ngx';
constructor(private appVersion: AppVersion) { }
...
this.appVersion.getAppName();
this.appVersion.getPackageName();
this.appVersion.getVersionCode();
this.appVersion.getVersionNumber();