npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ccervantesb/cordova-plugin-app-icon

v1.0.1

Published

This plugin allows change the app icon.

Readme

Cordova Plugin App Icon

npm License

This plugin allows change the app icon.

Installation

Install plugin from npm:

npm i @ccervantesb/cordova-plugin-app-icon

Or install the latest master version from GitHub:

cordova plugin add https://github.com/cesarcervantesb/cordova-plugin-app-icon

Supported Platforms

  • Android
  • iOS

Usage

The plugin creates the object cordova.plugins.appIcon and is accessible after the deviceready event has been fired.

document.addEventListener('deviceready', function () {
    // cordova.plugins.appIcon is now available
}, false);

Available methods

  • changeIcon - Change the application icon.
  • resetIcon - Reset the application icon.
  • getAppName - Get the display application icon name. (Activity alias for Android or alternateIconName for iOS)

Android configuration

Add all custom icons directly to your Android project in app/src/res/.

Setup ApplicationManifest.xml

Each custom icon is represented by an <activity-alias>. You should add all custom icons to the ApplicationManfest.xml as child elements of <application>. For example:

<application>
    <activity
        android:name=".MainActivity"
        android:exported="true"
        android:launchMode="singleTask"
        android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
        android:label="@string/title_activity_main"
        android:theme="@style/AppTheme.NoActionBarLaunch">

        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>

    </activity>
    <activity-alias
        android:label="Custom Icon"
        android:icon="@drawable/my_custom_icon"
        android:roundIcon="@drawable/my_custom_icon"
        android:name=".customicon"
        android:enabled="false"
        android:exported="true"
        android:targetActivity=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity-alias>
  
  <!-- additional <activity-alias> -->

<application>

IOS Configuration

This plugin only changes the main app icon on the device homescreen. The icon in springboard and in other areas will not change and continue to show the original.

Changing the app icon is only allowed when the app is in the foreground.

Create the custom icons in assets catalog

  • In XCode go to Assets and create the App Icons. (images in 1024x1024px)
NOTE: The name of the asset should correspond to the name used in the code

Change build settings

  1. Visit Build Settings
  2. Search For App icon,
  3. Select "yes" for Include All App Icon Assets
  4. Include a list (in Alternate App Icon Sets) with precise names of the app icons in the Assets Catalogue.