Skip to content

Simple plugin that allows to control the visibility of the app icon

Notifications You must be signed in to change notification settings

androidovshchik/cordova-app-icon

Repository files navigation

cordova-app-icon plugin

Simple plugin that allows to control the visibility of the app icon

As of Android 10 Q (API 29) all app icons will be visible in the launcher no matter what unless special privileges

Getting started

Create a new Cordova Project

$ cordova create example com.example Example

Install the plugin

$ cd example
$ cordova plugin add https://github.com/androidovshchik/cordova-app-icon.git

Edit www/js/index.js and add the following code inside onDeviceReady

// hide icon
AppIcon.toggle(false);
// check if icon is hidden
AppIcon.isHidden(function(result) {
    if (result) {
        // currently icon is hidden    
    }
});

Install Android platform

cordova platform add android

Run the app

cordova run android

About

Simple plugin that allows to control the visibility of the app icon

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published