{
  "slug": "badging-api",
  "name": "Badging API",
  "category": "Engagement",
  "summary": "Set an app-icon badge (count or dot) on the installed PWA.",
  "name_zh": "Badging API（角标）",
  "summary_zh": "为已安装的 PWA 设置应用图标角标（数字或圆点）。",
  "spec_url": "https://w3c.github.io/badging/",
  "mdn_url": "https://developer.mozilla.org/en-US/docs/Web/API/Badging_API",
  "confidence": "medium",
  "verified_at": "2026-06-24",
  "support": [
    {
      "target": "Chrome (Android)",
      "os": "Android",
      "browser": "chrome",
      "engine": "blink",
      "status": "partial",
      "version_added": "84",
      "version_full": null,
      "applicable": true,
      "notes": [
        {
          "text": "Badging is honored only for installed apps and subject to launcher support.",
          "text_zh": "角标仅对已安装应用生效，且取决于启动器是否支持。"
        }
      ],
      "source": "https://developer.mozilla.org/en-US/docs/Web/API/Badging_API",
      "verified_at": "2026-06-24",
      "confidence": "medium"
    },
    {
      "target": "Chrome (Desktop)",
      "os": "Desktop",
      "browser": "chrome",
      "engine": "blink",
      "status": "yes",
      "version_added": "81",
      "version_full": "81",
      "applicable": true,
      "notes": [],
      "source": "https://developer.mozilla.org/en-US/docs/Web/API/Badging_API",
      "verified_at": "2026-06-24",
      "confidence": "medium"
    },
    {
      "target": "Edge (Desktop)",
      "os": "Desktop",
      "browser": "edge",
      "engine": "blink",
      "status": "yes",
      "version_added": "81",
      "version_full": "81",
      "applicable": true,
      "notes": [],
      "source": "https://developer.mozilla.org/en-US/docs/Web/API/Badging_API",
      "verified_at": "2026-06-24",
      "confidence": "medium"
    },
    {
      "target": "Safari (iOS)",
      "os": "iOS",
      "browser": "safari",
      "engine": "webkit",
      "status": "yes",
      "version_added": "16.4",
      "version_full": "16.4",
      "applicable": true,
      "notes": [
        {
          "text": "For home-screen web apps; tied to notification permission.",
          "text_zh": "仅限主屏幕 Web 应用；与通知权限绑定。"
        }
      ],
      "source": "https://developer.mozilla.org/en-US/docs/Web/API/Badging_API",
      "verified_at": "2026-06-24",
      "confidence": "medium"
    },
    {
      "target": "Safari (macOS)",
      "os": "macOS",
      "browser": "safari",
      "engine": "webkit",
      "status": "yes",
      "version_added": "17",
      "version_full": "17",
      "applicable": true,
      "notes": [],
      "source": "https://developer.mozilla.org/en-US/docs/Web/API/Badging_API",
      "verified_at": "2026-06-24",
      "confidence": "medium"
    },
    {
      "target": "Firefox (Desktop)",
      "os": "Desktop",
      "browser": "firefox",
      "engine": "gecko",
      "status": "no",
      "version_added": null,
      "version_full": null,
      "applicable": true,
      "notes": [
        {
          "text": "Firefox has no Badging API implementation; `navigator.setAppBadge` is undefined (MDN compatibility table, checked 2026-10-03).",
          "text_zh": "Firefox 没有实现 Badging API；`navigator.setAppBadge` 为 undefined（MDN 兼容性表，2026-10-03 核对）。"
        }
      ],
      "source": "https://developer.mozilla.org/en-US/docs/Web/API/Badging_API",
      "verified_at": "2026-06-24",
      "confidence": "medium"
    },
    {
      "target": "Samsung Internet",
      "os": "Android",
      "browser": "samsung",
      "engine": "blink",
      "status": "partial",
      "version_added": "13.0",
      "version_full": null,
      "applicable": true,
      "notes": [
        {
          "text": "Follows Chrome for Android: the badge is shown only for installed web apps and depends on launcher support.",
          "text_zh": "与 Chrome for Android 一致：角标仅对已安装 Web 应用显示，且取决于启动器是否支持。"
        }
      ],
      "source": "https://developer.mozilla.org/en-US/docs/Web/API/Badging_API",
      "verified_at": "2026-06-24",
      "confidence": "medium"
    }
  ],
  "biz_compat": [],
  "generated_by": "OpenPWA compatibility explorer",
  "licence": "CC BY 4.0",
  "licence_url": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "OpenPWA — https://openpwa.net",
  "attribution_html": "<a href=\"https://openpwa.net\">OpenPWA</a>, <a href=\"https://creativecommons.org/licenses/by/4.0/\">CC BY 4.0</a>"
}