user2387315
user2387315

Reputation: 107

How do I set the icon and splash screen for a Cordova app in Visual Studio?

I am trying to make a Cordova application inside Visual Studio 2013 Professional. When I add a <icon> tag to my config.xml as well as a <splash> tag, the icon does not actually show up when I run my app.

My icon image is .png format and 128x128.
Here is the relevant section in my config.xml:

<icon src="res/icon.png"/>
<splash src="images/about.jpg"/>

Can anyone help me? I can post more code if that is necessary.

Upvotes: 3

Views: 6839

Answers (3)

Hardeep Singh
Hardeep Singh

Reputation: 866

For Visual studio

Step 1. Install Splash Screen Plugin from config.xml

Step 2. Change images for splash screens (The res\screens\platform subfolder contains splash screens for each platform).

Step 3. Run Project on Device.

Upvotes: 0

John S
John S

Reputation: 1

You can't, Visual Studio Cordova will not, without adding a 3rd party hook which requires advanced configuration, allow you to change them.

Upvotes: 0

Ellen
Ellen

Reputation: 1189

If you are using VS Tools for Apache Cordova in VS 2013, you need to provide visual assets with names and dimensions listed in this documentation here.

Our next public release of VS 2015 will support using config.xml to configure visual assets as in your sample.

Upvotes: 2

Related Questions