Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70762

Ionic 4; Capacitor - get version in the web

$
0
0

@terranmarine wrote:

Hello,
I am migrating our app from cordova to Capacitor. 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

Read full topic


Viewing all articles
Browse latest Browse all 70762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>