{"id":15008480,"url":"https://github.com/g123k/flutter_app_badger","last_synced_at":"2025-10-03T16:31:40.725Z","repository":{"id":37413118,"uuid":"128983692","full_name":"g123k/flutter_app_badger","owner":"g123k","description":"Support to update the app badge on the launcher (both for Android and iOS)","archived":true,"fork":false,"pushed_at":"2024-07-11T23:56:39.000Z","size":164,"stargazers_count":307,"open_issues_count":54,"forks_count":178,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-01-01T23:20:26.017Z","etag":null,"topics":["android","badge","dart","dartlang","flutter","ios","launcher"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flutter_app_badger","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/g123k.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-10T19:17:31.000Z","updated_at":"2024-10-18T05:40:07.000Z","dependencies_parsed_at":"2023-11-15T19:31:13.671Z","dependency_job_id":"3d0ca1dd-d16d-44f4-83fb-90f6a7a1e4b5","html_url":"https://github.com/g123k/flutter_app_badger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g123k%2Fflutter_app_badger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g123k%2Fflutter_app_badger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g123k%2Fflutter_app_badger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g123k%2Fflutter_app_badger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/g123k","download_url":"https://codeload.github.com/g123k/flutter_app_badger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235155997,"owners_count":18944824,"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":["android","badge","dart","dartlang","flutter","ios","launcher"],"created_at":"2024-09-24T19:19:01.283Z","updated_at":"2025-10-03T16:31:35.313Z","avatar_url":"https://github.com/g123k.png","language":"Objective-C","funding_links":[],"categories":["插件","Device [🔝](#readme)","Plugins"],"sub_categories":["设备","Device","Monetization"],"readme":"# Flutter App Badger plugin (UNMAINTAINED)\n\n[![Pub](https://img.shields.io/pub/v/flutter_app_badger.svg)](https://pub.dartlang.org/packages/flutter_app_badger)\n\nThis plugin for [Flutter](https://flutter.io) adds the ability to change the badge of the app in the launcher.\nIt supports iOS, macOS, and some Android devices (the official API does not support the feature, even on Oreo).\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/g123k/flutter_app_badger/master/assets/ios.png\" alt=\"Android badge\" style=\"margin:auto\" width=\"600\" \nheight=\"228\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/g123k/flutter_app_badger/master/assets/android.png\" alt=\"Android badge\" style=\"margin:auto\" width=\"600\" \nheight=\"322\"\u003e\n\u003c/p\u003e\n\n\n## Getting Started\n\n### iOS\n\nOn iOS, the notification permission is required to update the badge.\nIt is automatically asked when the badge is added or removed.\n\nPlease also add the following to your \u003cyour project\u003e/ios/Runner/Info.plist:\n```xml\n\u003ckey\u003eUIBackgroundModes\u003c/key\u003e\n    \u003carray\u003e\n        \u003cstring\u003eremote-notification\u003c/string\u003e\n    \u003c/array\u003e\n```\n\n## macOS\n\nOn macOS, the notification permission is required to update the badge.\nIt is automatically asked when the badge is added or removed.\n\nPlease also add the following to your \u003cyour project\u003e/macos/Runner/Info.plist:\n```xml\n\u003ckey\u003eNSUserNotificationAlertStyle\u003c/key\u003e\n\u003cstring\u003ebanner\u003c/string\u003e\n```\n\n### Android\n\nOn Android, no official API exists to show a badge in the launcher. But some devices (Samsung, HTC...) support the feature.\nThanks to the [Shortcut Badger library](https://github.com/leolin310148/ShortcutBadger/), ~ 16 launchers are supported.\n\n\n### Dart\n\nFirst, you just have to import the package in your dart files with:\n```dart\nimport 'package:flutter_app_badger/flutter_app_badger.dart';\n```\n\nThen you can add a badge:\n```dart\nFlutterAppBadger.updateBadgeCount(1);\n```\n\nRemove a badge:\n```dart\nFlutterAppBadger.removeBadge();\n```\n\nOr just check if the device supports this feature with:\n```dart\nFlutterAppBadger.isAppBadgeSupported();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg123k%2Fflutter_app_badger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg123k%2Fflutter_app_badger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg123k%2Fflutter_app_badger/lists"}