V
V
Vladimir2017-01-21 19:43:37
Apache Cordova
Vladimir, 2017-01-21 19:43:37

How to set custom icon in apache cordova?

The icon in png format is located in the folder res/logo.png
I tried to use the resolution file 256x256 and 1000x1000
In the same place at the root in the config.xml file

<platform name="android">
        <allow-intent href="market:*" />
        <icon src="res/logo.png" density="ldpi" />
        <icon src="res/logo.png" density="mdpi" />
        <icon src="res/logo.png" density="hdpi" />
        <icon src="res/logo.png" density="xhdpi" />
    </platform>

As a result, the icon does not change.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2017-01-22
@Casufi

<platform name="android">
        <allow-intent href="market:*" />
        <icon src="res/logo.png" density="ldpi" />
        <icon src="res/logo.png" density="mdpi" />
        <icon src="res/logo.png" density="hdpi" />
        <icon src="res/logo.png" density="xhdpi" />
    </platform>

The code is correct, the problem was in cordova, in order for everything to work, you need to force the android platform to be updated to 6.1
~cordova platform update [email protected]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question