Cordova how to update and install or view platforms and plugins
This article references some of the common commands via CLI (command-line interface) in running a Cordova app.
Platforms
Platforms are the environment(s) that you want to run your app on. We will add the 'ios' and 'android' platform and ensure they get saved to config.xml and package.json files.
To add a platform use the following command:
cordova ios after upgrading to iOS 14 a black screen is shown and no splash screen appears
It appears that the plugin or file path is not working how it used to be on previous iOS versions. Previous version had the splash screen showing. After upgrading to plugins, a black screen is shown.
The easiest way to simulate the problem is using iOS simulator. A black screen will show up as the splash screen.
Cordova prepare if the plugins aren't showing
How can you find out if the Cordova plugins have been loaded?
Begin by running the command
ionic info
You will see a response similar to
Cordova plugins not loading in Ionic
Updating the Cordova plugins... there are two locations to manage the plugins
- config.xml
- package.json
I was finding some Cordova functionality was not coming through... through further investigation the two files above had conflicting data.
Review the data
package.json