Using Cordova plugins with Electron platform support
See original GitHub issueI have a cordova plugin which supports electron platform, together with android and ios platforms. The plugin has electron entry in its plugin.xml and a source file in ./src/electron folder.
When I do
npx cap sync
the sync correctly recognizes this cordova plugin for android and ios and copies it to the appropriate folders in native projects:
./android/capacitor-cordova-android-plugins/
for android, and./ios/capacitor-cordova-ios-plugins/
for ios.
However, no such thing happens for electron, nothing is copied as far as I can tell. I also tried
npx cap sync @capacitor-community/electron
but the cordova plugin isn’t copied either.
When I try
npx cap ls
a part of the output says [info] Listing plugins for electron is not possible
.
Is this feature implemented, or is it even possible to implement?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Electron Platform Guide - Apache Cordova
All browser-based plugins are usable with the Electron platform. When adding a plugin, if the plugin supports both the electron and browser platform,...
Read more >How do I create a cordova plugin targeting electron platform?
Cordova seems to support the electron platform, and just executing cordova platform add electron it was able to create a window containing the ......
Read more >Cross-Platform development with Cordova and Electron
With this framework, we can deploy to multiple platforms using a single ... Take advantage of existing browser supported Cordova plugins.
Read more >Cordova Electron
When adding a plugin, if the plugin supports both the electron and browser platform, the electron portion will be used. If the plugin...
Read more >cordova-electron - npm
electron apps as a target for cordova developers. Latest version: 3.1.0, last published: 7 months ago. Start using cordova-electron in your ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You could use electron API’s directly (see https://www.electronjs.org/docs/api/dialog) or a capacitor plugin ( see https://capacitorjs.com/docs/apis/filesystem )
I havent looked into using cordova plugins with electron, but I will add this to the future plans list.