Closed OoDeLally closed 4 years ago
That only prints Core plugins. And Cordova plugins are not added to Capacitor.Plugins object, that's only for Capacitor plugins.
You have to use Cordova plugins the same way you use them in Cordova apps.
Also, to copy the plugin files to the native project, run npx cap update android
or npx cap sync android
, copy only copies the web assets, but not the native classes.
Thank you. Indeed the plugin was waiting for me in cordova.hotspot
...
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
Capacitor Version
npx cap doctor
output:Affected Platform(s)
Current Behavior
I am trying to install
@ionic-native/hotspot
withcordova-plugin-hotspot
. I've installed it (I believe) according to the documentation. Capacitor seems to recognizecordova-plugin-hotspot
onnpx cap copy
Once in the app, I fetch my plugin like this:
On android Logcat I can see what Capacitor loads (see the log below), but no trace of my plugin.
Expected Behavior
I expect to have the plugin available in my functions' runtime.
Sample Code or Sample Application Repo
https://github.com/OoDeLally/capacitor-plugin-bug
Reproduction Steps
Run the sample repo.
Other Technical Details
npm --version
output: 6.4.1node --version
output: v12.13.0Other Information
Logcat