{
  "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": "high",
  "verified_at": "2026-10-20",
  "support": [
    {
      "target": "Chrome (Desktop)",
      "os": "Desktop",
      "browser": "chrome",
      "engine": "blink",
      "status": "yes",
      "version_added": "81",
      "version_full": "81",
      "applicable": true,
      "notes": [
        {
          "text": "Windows and macOS since Chrome 81.",
          "text_zh": "Windows 与 macOS 自 Chrome 81 起支持。"
        },
        {
          "text": "ChromeOS since Chrome 91.",
          "text_zh": "ChromeOS 自 Chrome 91 起支持。"
        },
        {
          "text": "Linux offers no universal badging API on the operating system level.",
          "text_zh": "Linux 在操作系统层面没有通用的角标 API。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Navigator.json",
      "verified_at": "2026-10-20",
      "confidence": "high"
    },
    {
      "target": "Chrome (Android)",
      "os": "Android",
      "browser": "chrome",
      "engine": "blink",
      "status": "no",
      "version_added": null,
      "version_full": null,
      "applicable": true,
      "notes": [
        {
          "text": "No Chrome Android support is recorded in browser-compat-data.",
          "text_zh": "browser-compat-data 未记录 Chrome Android 的支持。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Navigator.json",
      "verified_at": "2026-10-20",
      "confidence": "high"
    },
    {
      "target": "Edge (Desktop)",
      "os": "Desktop",
      "browser": "edge",
      "engine": "blink",
      "status": "yes",
      "version_added": "81",
      "version_full": "81",
      "applicable": true,
      "notes": [
        {
          "text": "Windows and macOS since Chrome 81.",
          "text_zh": "Windows 与 macOS 自 Chrome 81 起支持。"
        },
        {
          "text": "ChromeOS since Chrome 91.",
          "text_zh": "ChromeOS 自 Chrome 91 起支持。"
        },
        {
          "text": "Linux offers no universal badging API on the operating system level.",
          "text_zh": "Linux 在操作系统层面没有通用的角标 API。"
        },
        {
          "text": "Derived by browser-compat-data mirroring from Chrome.",
          "text_zh": "由 browser-compat-data 镜像自 Chrome 的数据推导。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Navigator.json",
      "verified_at": "2026-10-20",
      "confidence": "high"
    },
    {
      "target": "Firefox (Desktop)",
      "os": "Desktop",
      "browser": "firefox",
      "engine": "gecko",
      "status": "no",
      "version_added": null,
      "version_full": null,
      "applicable": true,
      "notes": [
        {
          "text": "No Firefox support is recorded in browser-compat-data.",
          "text_zh": "browser-compat-data 未记录 Firefox 的支持。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Navigator.json",
      "verified_at": "2026-10-20",
      "confidence": "high"
    },
    {
      "target": "Firefox (Android)",
      "os": "Android",
      "browser": "firefox",
      "engine": "gecko",
      "status": "no",
      "version_added": null,
      "version_full": null,
      "applicable": true,
      "notes": [
        {
          "text": "No Firefox for Android support is recorded in browser-compat-data.",
          "text_zh": "browser-compat-data 未记录 Firefox for Android 的支持。"
        },
        {
          "text": "Derived by browser-compat-data mirroring from Firefox.",
          "text_zh": "由 browser-compat-data 镜像自 Firefox 的数据推导。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Navigator.json",
      "verified_at": "2026-10-20",
      "confidence": "high"
    },
    {
      "target": "Safari (macOS)",
      "os": "macOS",
      "browser": "safari",
      "engine": "webkit",
      "status": "yes",
      "version_added": "17",
      "version_full": "17",
      "applicable": true,
      "notes": [
        {
          "text": "Badging is supported for installed web apps on macOS Sonoma and higher.",
          "text_zh": "macOS Sonoma 及更高版本上，已安装的 Web 应用支持角标。"
        },
        {
          "text": "Passing `0` as an argument will clear the badge instead of displaying an unnumbered dot.",
          "text_zh": "传入 `0` 会清除角标，而不是显示一个不带数字的圆点。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Navigator.json",
      "verified_at": "2026-10-20",
      "confidence": "high"
    },
    {
      "target": "Safari (iOS)",
      "os": "iOS",
      "browser": "safari",
      "engine": "webkit",
      "status": "yes",
      "version_added": "16.4",
      "version_full": "16.4",
      "applicable": true,
      "notes": [
        {
          "text": "Badging is supported for web apps saved to the home screen.",
          "text_zh": "添加到主屏幕的 Web 应用支持角标。"
        },
        {
          "text": "Passing `0` as an argument will clear the badge instead of displaying an unnumbered dot.",
          "text_zh": "传入 `0` 会清除角标，而不是显示一个不带数字的圆点。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Navigator.json",
      "verified_at": "2026-10-20",
      "confidence": "high"
    },
    {
      "target": "Samsung Internet",
      "os": "Android",
      "browser": "samsung",
      "engine": "blink",
      "status": "no",
      "version_added": null,
      "version_full": null,
      "applicable": true,
      "notes": [
        {
          "text": "No Samsung Internet support is recorded in browser-compat-data.",
          "text_zh": "browser-compat-data 未记录 Samsung Internet 的支持。"
        },
        {
          "text": "Derived by browser-compat-data mirroring from Chrome Android.",
          "text_zh": "由 browser-compat-data 镜像自 Chrome Android 的数据推导。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Navigator.json",
      "verified_at": "2026-10-20",
      "confidence": "high"
    },
    {
      "target": "WebView (Android)",
      "os": "Android",
      "browser": "webview",
      "engine": "blink",
      "status": "no",
      "version_added": null,
      "version_full": null,
      "applicable": true,
      "notes": [
        {
          "text": "No WebView Android support is recorded in browser-compat-data.",
          "text_zh": "browser-compat-data 未记录 WebView Android 的支持。"
        },
        {
          "text": "Derived by browser-compat-data mirroring from Chrome Android.",
          "text_zh": "由 browser-compat-data 镜像自 Chrome Android 的数据推导。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/Navigator.json",
      "verified_at": "2026-10-20",
      "confidence": "high"
    }
  ],
  "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>"
}