Using cordova plugins in a capacitor-powered app #15265
Unanswered
please-fill-out-this-field
asked this question in
CLI - Capacitor / Cordova modes
Replies: 1 comment 1 reply
-
Already figured out. Doesn't work in browser though...
Well, thanks anyway.
пт, 13 янв. 2023 г. в 19:58, Aldrin Marquez ***@***.***>:
… try window.cordova
—
Reply to this email directly, view it on GitHub
<#15265 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL7WRLEKMXYKFRF3UDFH26LWSF3SHANCNFSM6AAAAAAT2ITU2I>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have an app that's build around Capacitor v3 and now I need to add some cordova plugins. How do I use them?
The in-app browser plugin, for instance. I installed the plugin and did that
cap sync
thing - capacitor detected "1 cordova plugin for android", no problems here. The problem is that plugin's documentation tells me tobut I have no idea where to get the
cordova
object from.First I tried to just
yarn add cordova
thenbut it won't build even for web -
quasar dev
failed with kilometers of import errors.Then I tried to import the plugin directly:
but apparently cordova plugins don't work that way:
Well, that's it. Any help is appreciated.
P.S. No, capacitor's browser doesn't satisfy my needs. No, I don't wanna switch to cordova entirely.
Beta Was this translation helpful? Give feedback.
All reactions