You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 21, 2022. It is now read-only.
cordova-osx should restore plugins from package.json when running cordova platform add osx. The plugins' native and JS code should run before the deviceready event is fired.
What does actually happen?
Plugins declared in package.json are successfully added to the native macOS (Xcode) project, but their code is not run. As a result, the WebView is not able to access exported definitions (i.e. window.device for cordova-plugin-device).
Information
When restoring plugins from package.json:
the last installed plugin overrides existing configurations in platforms/osx/www/cordova_plugins.js
platforms/osx/cordova-macos-test/config.xml and platforms/osx/osx.json are missing plugin declarations.
Manually removing and adding plugins successfully configures them to run.
Note that this issue does not occurr in [email protected] (or cordova-ios@6.*).