{"id":13472715,"url":"https://github.com/leolin310148/ShortcutBadger","last_synced_at":"2025-03-26T17:31:09.178Z","repository":{"id":11864753,"uuid":"14424284","full_name":"leolin310148/ShortcutBadger","owner":"leolin310148","description":"An Android library supports badge notification like iOS in Samsung, LG, Sony and HTC launchers.","archived":false,"fork":false,"pushed_at":"2023-09-14T17:38:02.000Z","size":1231,"stargazers_count":7346,"open_issues_count":192,"forks_count":1343,"subscribers_count":223,"default_branch":"master","last_synced_at":"2024-10-29T15:00:21.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leolin310148.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2013-11-15T12:51:52.000Z","updated_at":"2024-10-25T11:11:24.000Z","dependencies_parsed_at":"2023-01-13T16:42:13.316Z","dependency_job_id":"38efb152-04af-4b7d-9809-980117686b69","html_url":"https://github.com/leolin310148/ShortcutBadger","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leolin310148%2FShortcutBadger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leolin310148%2FShortcutBadger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leolin310148%2FShortcutBadger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leolin310148%2FShortcutBadger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leolin310148","download_url":"https://codeload.github.com/leolin310148/ShortcutBadger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245562960,"owners_count":20635907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:00:57.353Z","updated_at":"2025-03-26T17:31:09.145Z","avatar_url":"https://github.com/leolin310148.png","language":"Java","funding_links":[],"categories":["Java","Quirks","Libs","Android Hacking"],"sub_categories":["Type Aliases","\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"ShortcutBadger: [![Maven Central](https://maven-badges.herokuapp.com/maven-central/me.leolin/ShortcutBadger/badge.svg)](https://maven-badges.herokuapp.com/maven-central/me.leolin/ShortcutBadger)\n===================================\n\nThe ShortcutBadger makes your Android App show the count of unread messages as a badge on your App shortcut!\n\n# Supported launchers:\u003cbr/\u003e\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd width=\"130\"\u003e\n            \u003ch3\u003eSony\u003c/h3\u003e\n            \u003cbr\u003e\n            \u003cimg src=\"https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_sony.png\"/\u003e\n        \u003c/td\u003e\n        \u003ctd width=\"130\"\u003e\n            \u003ch3\u003eSamsung\u003c/h3\u003e\n            \u003cbr\u003e\n            \u003cimg src=\"https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_samsung.png\"/\u003e\n        \u003c/td\u003e\n        \u003ctd width=\"130\"\u003e\n            \u003ch3\u003eLG\u003c/h3\u003e\n            \u003cbr\u003e\n            \u003cimg src=\"https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_lg.png\"/\u003e\n        \u003c/td\u003e\n        \u003ctd width=\"130\"\u003e\n            \u003ch3\u003eHTC\u003c/h3\u003e\n            \u003cbr\u003e\n            \u003cimg src=\"https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_htc.png\"/\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd width=\"130\"\u003e\n            \u003ch3\u003eXiaomi\u003c/h3\u003e\n            \u003cbr\u003e\n            \u003cimg src=\"https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_xiaomi.png\"/\u003e\n            \u003cbr\u003e\n        \u003c/td\u003e\n        \u003ctd width=\"130\"\u003e\n            \u003ch3\u003eASUS\u003c/h3\u003e\n            \u003cbr\u003e\n            \u003cimg src=\"https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_asus.png\"/\u003e\n        \u003c/td\u003e\n        \u003ctd width=\"130\"\u003e\n            \u003ch3\u003eADW\u003c/h3\u003e\n            \u003cbr\u003e\n            \u003cimg src=\"https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_adw.png\"/\u003e\n        \u003c/td\u003e\n        \u003ctd width=\"130\"\u003e\n            \u003ch3\u003eAPEX\u003c/h3\u003e\n            \u003cbr\u003e\n            \u003cimg src=\"https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_apex.png\"/\u003e\n        \u003c/td\u003e\n    \u003ctr\u003e\n        \u003ctd width=\"130\"\u003e\n            \u003ch3\u003eNOVA\u003c/h3\u003e\n            \u003cbr\u003e\n            \u003cimg src=\"https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_nova.png\"/\u003e\n        \u003c/td\u003e\n        \u003ctd width=\"130\"\u003e\n            \u003ch3\u003eHuawei\u003c/h3\u003e\n            \u003cbr\u003e\n            (Not Fully Support)\n            \u003cbr\u003e\n            \u003cimg src=\"https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_huawei.png\"/\u003e\n            \u003cbr\u003e\n            (1.1.7+)\n        \u003c/td\u003e\n        \u003ctd width=\"130\"\u003e\n            \u003ch3\u003eZUK\u003c/h3\u003e\n            \u003cbr\u003e\n            \u003cimg src=\"https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_zuk.png\"/\u003e\n            \u003cbr\u003e\n            (1.1.10+)\n        \u003c/td\u003e\n        \u003ctd width=\"130\"\u003e\n            \u003ch3\u003eOPPO\u003c/h3\u003e\n            \u003cbr\u003e\n            (Not Fully Support)\n            \u003cbr\u003e\n            \u003cimg src=\"screenshots/ss_oppo.png?raw=true\"/\u003e\n            \u003cbr\u003e\n            (1.1.10+)\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd width=\"130\"\u003e\n            \u003ch3\u003eEverythingMe\u003c/h3\u003e\n            \u003cbr\u003e\n            \u003cimg src=\"https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_evme.png\"/\u003e\n        \u003c/td\u003e\n        \u003ctd width=\"130\"\u003e\n            \u003ch3\u003eZTE\u003c/h3\u003e\n            \u003cbr\u003e\n            \u003cimg src=\"https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_zte.png\"/\u003e\n            \u003cbr\u003e\n            (1.1.17+)\n        \u003c/td\u003e\n        \u003ctd width=\"260\" colspan=\"2\"\u003e\n            \u003ch3\u003eKISS\u003c/h3\u003e\n            \u003cbr\u003e\n            \u003cimg src=\"https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_kiss.png\"/\u003e\n            \u003cbr\u003e\n            (1.1.18+)\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd width=\"130\"\u003e\n            \u003ch3\u003eLaunchTime\u003c/h3\u003e\n            \u003cbr\u003e\n            \u003cimg src=\"https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_launchtime.png\"/\u003e\n        \u003c/td\u003e\n        \u003ctd width=\"260\" colspan=\"2\"\u003e\n                    \u003ch3\u003eYandex Launcher\u003c/h3\u003e\n                    \u003cbr\u003e\n                    \u003cimg src=\"https://raw.github.com/leolin310148/ShortcutBadger/master/screenshots/ss_yandex.png\"/\u003e\n                    \u003cbr\u003e\n                    (1.1.23+)\n        \u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n* Nova launcher with TeslaUnread, Apex launcher, ADW Launcher provided by [notz](https://github.com/notz)\n* Solid launcher provided by [MajeurAndroid](https://github.com/MajeurAndroid)\n* KISS Launcher provided by [alexander255](https://github.com/alexander255)\n\n## About Xiaomi devices\nXiaomi devices require extra setup with notifications, please read [wiki](https://github.com/leolin310148/ShortcutBadger/wiki/Xiaomi-Device-Support).\n\n## IsBadgeWorking? \n\nA tool for displaying your device, launcher \u0026 android version and testing whether ShortcutBadger\nworks or not may be downloaded from\n\n* Google Play [https://play.google.com/store/apps/details?id=me.leolin.isbadgeworking](https://play.google.com/store/apps/details?id=me.leolin.isbadgeworking)\n* The GitHub repository [https://github.com/leolin310148/IsBadgeWorking.Android/releases](https://github.com/leolin310148/IsBadgeWorking.Android/releases)\n\n\nUSAGE\n===================================\n\u003cbr/\u003e1. Add mavenCentral to your build script.\n\n        repositories {\n            mavenCentral()\n        }\n    \n\u003cbr/\u003e2. Add dependencies for ShortcutBadger, it's available from maven now.\n        \n        dependencies {\n            implementation \"me.leolin:ShortcutBadger:1.1.22@aar\"\n        }\n\n\u003cbr/\u003e3. Add the codes below:\n\n        int badgeCount = 1;\n        ShortcutBadger.applyCount(context, badgeCount); //for 1.1.4+\n        ShortcutBadger.with(getApplicationContext()).count(badgeCount); //for 1.1.3\n        \n\u003cbr/\u003e4. If you want to remove the badge\n        \n        ShortcutBadger.removeCount(context); //for 1.1.4+\n        ShortcutBadger.with(getApplicationContext()).remove();  //for 1.1.3\nor\n        \n        ShortcutBadger.applyCount(context, 0); //for 1.1.4+\n        ShortcutBadger.with(getApplicationContext()).count(0); //for 1.1.3\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n\nDEVELOP BY\n===================================\n[Leo Lin](https://github.com/leolin310148) - leolin310148@gmail.com\n\n\nABOUT Google Play Developer Term Violations\n===================================\nIf you receive a message from Google containing something like this:\u003cbr/\u003e \n\n        REASON FOR WARNING: Violation of section 4.4 of the Developer Distribution Agreement.\n        \nplease use version 1.1.0+!\n\n\n\nCHANGE LOG\n==========\n\n1.1.23:\n\n* Added Yandex Launcher support. Fixed issue with incorrect default launcher resolve\n\n1.1.22:\n\n* Improve Oreo support (Thanks to [AlexStarc](https://github.com/AlexStarc))\n\n1.1.20:\n\n* Renamed default broadcast action; added Android Oreo support.\n\n1.1.19:\n\n* Fix multiple home package resolve issue.\n\n1.1.18:\n\n* Add Kill Launcher Support\n\n1.1.17:\n\n* Add ZTE Support\n\n1.1.16:\n\n* Improve Sony Launcher support.\n\n1.1.15:\n\n* Add EverythingLauncher Support.\n\n1.1.14:\n\n* Fix for specific class of Samsung devices: with android 5, but without support of DefaultBadger\n* Remove Xiaomi from Badger and add Notification Support for Xiaomi devices.\n\n1.1.13:\n\n* Fix XiaomiBadger (tested with RedMi Note4)\n\n1.1.12:\n\n* Handling Samsung badger for old devices and new devices.\n* Try to support newer Xiaomi (Not tested.)\n* Try to support Vivo (Not tested.)\n\n1.1.11:\n\n* Add OPPO Launcher Support\n\n1.1.10:\n\n* Add ZUK Launcher Support\n\n1.1.9:\n\n* Add SamsungBadger back for more Samsung devices support.\n\n1.1.8:\n\n* Remove SolidBadger, now solid launcher will use default badger.\n\n1.1.7:\n\n* Add Huawei launcher support.\n\n1.1.6:\n\n* Add support for new Sony Launchers.\n\n1.1.5:\n\n* `applyCount` will return if the Broadcast has been sent successfully.\n\n1.1.4:\n\n* Changed `ShortcutBadger.setBadge(context, badgeCount)` to `ShortcutBadger.applyCount(context, badgeCount);`\n\n1.1.3:\n\n* Deprecate SamsungBadger and LGBadger, those devices can use DefaultBadger.\n\n1.1.2:\n\n* Add support for `com.miui.mihome2`\n\n1.1.1:\n\n* Add DefaultBadger because some launchers use android.intent.action.BADGE_COUNT_UPDATE to update count.\n* Since the ShortcutBadgerException is helpless. So change api to set badge and never have to handle the exception again.\n\n1.1.0:\n\n* Remove Android Launcher support due to Google Play Developer Term Violation since 4.4.\n\n1.0.10:\n\n* Add Asus launcher support.\n\n1.0.9:\n\n* Add Xiaomi launcher support.\n\n\nLICENSE\n===================================\n\u003cbr/\u003e\n        \n        Copyright 2014 Leo Lin\n        \n        Licensed under the Apache License, Version 2.0 (the \"License\");\n        you may not use this file except in compliance with the License.\n        You may obtain a copy of the License at\n        \n            http://www.apache.org/licenses/LICENSE-2.0\n        \n        Unless required by applicable law or agreed to in writing, software\n        distributed under the License is distributed on an \"AS IS\" BASIS,\n        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n        See the License for the specific language governing permissions and\n        limitations under the License.\n\u003cbr/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleolin310148%2FShortcutBadger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleolin310148%2FShortcutBadger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleolin310148%2FShortcutBadger/lists"}