From 5c9b7259aa911f9e9202e96a83456f350c59a8da Mon Sep 17 00:00:00 2001 From: pwlin Date: Sun, 26 Jul 2020 19:24:37 +0100 Subject: [PATCH] added support for Electron platform --- README.md | 4 +++- plugin.xml | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3081de25..76570046 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Opens a file - Android 4.4+ - iOS 9+ - Windows -- WP8 +- Electron ### Quick Examples Open an APK install dialog: @@ -90,6 +90,8 @@ cordova.plugins.fileOpener2.open( ); ``` +__Note on Electron:__ Do not forget to enable Node.js in your app by adding `"nodeIntegration": true` to `platforms/electron/platform_www/cdv-electron-settings.json` file, See [Cordova-Electron documentation](https://cordova.apache.org/docs/en/latest/guide/platforms/electron/index.html#customizing-the-application's-window-options). + ### Market place installation Install From Market: to install an APK from a market place, such as Google Play or the App Store, you can use an `` tag in combination with the `market://` protocol: diff --git a/plugin.xml b/plugin.xml index 58da8bab..cfb7390d 100644 --- a/plugin.xml +++ b/plugin.xml @@ -86,4 +86,12 @@ + + + + + + + +