I have a hybrid app that I'm trying to convert into a desktop app, adding the electron platform along with android and ios.
Cordova seems to support the electron platform, and just executing cordova platform add electron it was able to create a window containing the webapp, but with no hook for the plugins.
Since the plugins were firstly written for iOS and Android, I would like to rewrite them in NodeJS, but I'm having a hard time finding any documentation about that. In the cordova documentation I can read:
When adding a plugin, if the plugin supports both the electron and browser platform, the electron portion will be used. If the plugin misses electron but contains the browser implementation, it will fall back on the browser implementation.
But how can I know if a plugin supports the electron platform? And how can other developers know how to make a plugin compatible with electron if it's not mentioned anywhere but the "platform" section of documentation?
So, shortly, how do I setup an electron plugin for cordova?