@terranmarine wrote:
Hello,
I am migrating our app fromcordova
toCapacitor
. We will also be including a web version in same project.
Question is: How can I get the version of the app when in the web? I tried the following things, but none of them seems to be working on the web, when all are working on a native device.let cInfo = await (<any>window).IonicCordova.deploy.getConfiguration(); // Property doesn't appear on window on the web const config = await Plugins.Device.getInfo(); // No version on the web const appInfo = await this.pro.getAppInfo(); // Error in the web const deployInfo = await this.pro.deploy().info(); // Error in the web const versions = await this.pro._deploy.getVersions(); // Error in the web
Thanks in advance,
Alex.
Posts: 1
Participants: 1