Generating iOS and Android icons in Cordova / PhoneGap

后端 未结 9 1647
执念已碎
执念已碎 2020-12-01 06:28

I have a freshly created Cordova project with the following config.xml setup (used the instructions from http://docs.phonegap.com/en/edge/config_ref_images.md.h

相关标签:
9条回答
  • 2020-12-01 07:04

    Don't you need to specify the folder that has the icon on it? Cordova replaces the icon with the default one when it is not found.

    Have you tried to replace with something like:

    <icon src="res/icon.png" />
    
    0 讨论(0)
  • 2020-12-01 07:06

    I wrote a script that auto generates icons for cordova using ImageMagick:

    https://github.com/AlexDisler/cordova-icon

    To use it, create an "icon.png" file and place it in the root folder of your project, then run:

    cordova-icon
    

    and it will generate all the required icons for the platforms your project has.

    You can also configure it as a hook in your cordova project so the icons will be generated every time you build the project based on the icon.png you've added. (instructions in the readme).

    0 讨论(0)
  • 2020-12-01 07:07

    Please upload your icon here: https://pgicons.abiro.com/

    You can easily get all things from one station, like Icons(All Platforms), Splash Screens(All Platforms), config.xml (with generated icon name and path).

    You just need to replace the res folder and update config.xml, nothing else.

    0 讨论(0)
提交回复
热议问题