An open API service indexing awesome lists of open source software.

https://github.com/androidovshchik/cordova-app-icon

Simple plugin that allows to control the visibility of the app icon
https://github.com/androidovshchik/cordova-app-icon

android app cordova icon plugin

Last synced: over 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](https://developer.android.com/reference/android/content/pm/LauncherApps#getActivityList(java.lang.String,%20android.os.UserHandle))

## 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`

```js
// 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