I was using nw.js to create Desktop App from cordova browser platform. I came across electron and found it different from nw.js.
I tried migrating existing cordova based (Ionic + Angular JS) browser based application to electron but i’m getting cordova plugin errors. Which was working fine using nw.js.
I am using some cordova plugins (keyboard, splash, uuid etc.) in existing ionic/cordova based Android and iOS applications. I created new platform for browse to prepare desktop application and using this browser platform for creating desktop app.
some errors are given below:
[1180:0814/115055:INFO:CONSOLE(9)] "Uncaught TypeError: Cannot read property 'Keyboard' of undefined", source: file:///Users/rajil/work/WSMobileUAT/platforms/electron/www/resources/mobile/js/appTab.js (9) [1180:0814/115058:INFO:CONSOLE(70)] "Uncaught TypeError: Cannot read property 'hide' of undefined", source: file:///Users/rajil/work/WSMobileUAT/platforms/electron/www/desktopHome.html (70) [1180:0814/115121:INFO:CONSOLE(77)] "Device Paused ", source: file:///Users/rajil/work/WSMobileUAT/platforms/electron/www/desktopHome.html (77)
the errors are due to plugins not found. using nw.js there were no error like this but using electron i am getting these errors. Is there any way to incorporate cordova plugins in electron also?
Can anybody help in solving this errors?