Cordova plugin missing from "window"

Hi,

I’m trying to get a simple Cordova plugin to work within a Capacitor project. The plugin can be found here:

The documentation simply states that for it to run in Capacitor, I simply have to run these commands:

npm install cordova-plugin-openinstall
npx cap sync

And then call with my Javascript:

window.openinstall.init();

However the above gives me an undefined error and I don’t see the “openinstall” plugin anywhere within the “window” object.

I’ve never installed a Cordova plugin before and I’m still quite new to Capacitor. Sorry for the noob question but how can I get this plugin to work within Capacitor?

Thank You!