I cant use in Cordova-Electron require #547
Replies: 1 comment
-
To use modules like Communication flow: Application Logic ↔ Cordova Plugin (Front-end Layer) ↔ Cordova JS Bridge ↔ Cordova Plugin (Native Layer) Cordova-Electron uses Context Isolation), which affects how scripts interact with Electron internals:
For a reference implementation, the Cordova Device Plugin provides a good example of how to structure a plugin that supports Electron. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to implement a project using Cordova that should run on both Android and Electron. I've been working on it for a week already, but I keep running into the same problems. I'm trying to use the SerialPort module, but as soon as I try to use require, it immediately says that it's not defined. I've tried all the solutions I could find online, but I've failed again and again.
Beta Was this translation helpful? Give feedback.
All reactions