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
- Host: GitHub
- URL: https://github.com/androidovshchik/cordova-app-icon
- Owner: androidovshchik
- Created: 2020-07-21T11:05:58.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-22T14:19:01.000Z (almost 6 years ago)
- Last Synced: 2025-01-18T18:53:32.720Z (over 1 year ago)
- Topics: android, app, cordova, icon, plugin
- Language: Java
- Homepage:
- Size: 134 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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