Default: permission has not been granted to denied.
Granted: you allowed the website to send you notifications.
Denied: you blocked the website to send you notifications. This can be a temporary block if you clicked the x to close the prompt repeatedly or a permanent block if you clicked Block or toggled off permission in the browser settings.
Do not use an incognito, private, or guest browser setting. This example uses Chrome version 135 on macOS but the flow should be relatively the same for most browsers.
2
重置推送权限
Click the site settings or lock icon next to the site URL and select Reset permission or remove permissions for Notifications.
Skip to the next step if you don’t see this permission option.
Chrome 站点设置菜单 > 重置通知权限。
3
删除站点数据。
Click Cookies and site data > Manage on-device site data or follow the browser’s flow to see your site’s data option.
Chrome 的设备上站点数据屏幕。
删除您网站的数据并退出设置以返回您的网站。
示例显示清除您的站点 Cookie。
4
打开开发者工具。
Usually you can just right click the screen and press Inspect.
Chrome - Chrome runs as a background process by default even when all the windows are closed. As long as the background process is running, notifications will still be received. If the Chrome background process is not running, notifications will not be received.Firefox - On Mac OS X, the process still exists even if windows are closed, and a notification can be received if all windows are closed (as long as there is still a dot in the dock showing Firefox is still running). On Windows, the process exits after all windows are closed so notifications cannot be received unless a Firefox window is still open.Safari - Safari does not have to be running to receive notifications, as they are sent directly to the operating system. The user still has to sign up for Safari web notifications, but after that they will be received even when Safari is completely closed.订阅者最多有 3 天时间来检索最后一个已知的缺失通知,之后消息将永久过期。For example, suppose a subscriber was supposed to receive a Firefox web push notification, but Firefox was closed. If the subscriber opens Firefox within 3 days, the subscriber will receive only the last known web push notification that didn’t expire. If the subscriber opens Firefox after 3 days, the web push notification sent more than 3 days ago will not be received.
此页面对您有帮助吗?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OneSignal Documentation","description":"OneSignal is a platform for sending push notifications, emails, in-app messages, and SMS campaigns via a single API, Journey Builder, and a dashboard.","colors":{"primary":"#3A3DB3","light":"#E54B4D","dark":"#3A3DB3"},"logo":{"light":"https://mintcdn.com/onesignal/yJcueeDCO7UpHnnY/logo/OneSignal-Logo.svg?fit=max\u0026auto=format\u0026n=yJcueeDCO7UpHnnY\u0026q=85\u0026s=1fcfb6fef6d820fd9d99c74850711107","dark":"https://mintcdn.com/onesignal/s4WC_KzLxf8ornqq/logo/OneSignal-Logo-White.svg?fit=max\u0026auto=format\u0026n=s4WC_KzLxf8ornqq\u0026q=85\u0026s=2573a53b5aea961e18c82b3af8f31925"},"favicon":"https://mintcdn.com/onesignal/SGduBFHpiRdg5l6h/favicon.ico?fit=max\u0026auto=format\u0026n=SGduBFHpiRdg5l6h\u0026q=85\u0026s=c0a99fadc0553c658a83741c5611cef4","api":{"examples":{"languages":["curl","typescript","python","php","go","ruby","java","csharp","rust"],"autogenerate":true}},"navbar":{"links":[{"href":"mailto:support@onesignal.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.onesignal.com"}},"footer":{"socials":{"github":"https://github.com/OneSignal","linkedin":"https://linkedin.com/company/onesignal","youtube":"https://www.youtube.com/@onesignalofficial/playlists"}},"seo":{"metatags":{"apple-mobile-web-app-title":"OneSignal Docs"}},"fonts":{"family":"Nunito Sans"},"styling":{"eyebrows":"breadcrumbs","latex":true},"integrations":{"ga4":{"measurementId":"G-2DGWL0VYP5"},"posthog":{"apiKey":"phc_vZpvE0f5eyzcOt30FHer34yddVmNdo9kmlMVRBzLMtn","apiHost":"https://eu.i.posthog.com","sessionRecording":true}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"languages":[{"language":"en","href":"docs/en/home"},{"language":"cn","href":"docs/cn/home"},{"language":"ko","href":"docs/ko/home"},{"language":"ja","href":"docs/ja/home"},{"language":"tr","href":"docs/tr/home"},{"language":"pt-BR","href":"docs/pt-BR/home"},{"language":"es","href":"docs/es/home"},{"language":"fr","href":"docs/fr/home"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"onesignal","hasAudioNarration":false,"actualSubdomain":"onesignal","customDomains":["documentation.onesignal.com"],"gitSource":{"type":"github","owner":"onesignal","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af3b762ba298f9b99480a99","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"en","tag":"User Guides","count":204},{"language":"es","tag":"Guías del Usuario","count":178},{"language":"fr","tag":"Guides utilisateur","count":178},{"language":"ja","tag":"ユーザーガイド","count":178},{"language":"ko","tag":"사용자 가이드","count":178},{"language":"pt-BR","tag":"Guia do Usuário","count":178},{"language":"tr","tag":"Kullanıcı Kılavuzları","count":178},{"language":"cn","tag":"用户指南","count":176},{"language":"en","tag":"Message channels","count":90},{"language":"es","tag":"Canales de mensajería","count":84},{"language":"fr","tag":"Canaux de messagerie","count":84},{"language":"ja","tag":"メッセージングチャネル","count":84},{"language":"ko","tag":"메시지 채널","count":84},{"language":"pt-BR","tag":"Canais de mensagem","count":84},{"language":"tr","tag":"Mesaj kanalları","count":84},{"language":"cn","tag":"消息渠道","count":83},{"language":"default","tag":"API Reference","count":68},{"language":"default","tag":"API reference","count":64},{"language":"en","tag":"Analytics \u0026 Integrations","count":53},{"language":"es","tag":"Analítica \u0026 Integraciones","count":52},{"language":"fr","tag":"Analyses et intégrations","count":52},{"language":"ja","tag":"分析 \u0026 統合","count":52},{"language":"ko","tag":"분석 \u0026 통합","count":52},{"language":"pt-BR","tag":"Análises \u0026 Integrações","count":52},{"language":"tr","tag":"Analitik ve Entegrasyonlar","count":52},{"language":"cn","tag":"分析和集成","count":51},{"language":"cn","tag":"开发者指南","count":48},{"language":"es","tag":"Guías del desarrollador","count":48},{"language":"fr","tag":"Guides développeur","count":48},{"language":"ja","tag":"開発者ガイド","count":48},{"language":"ko","tag":"개발자 가이드","count":48},{"language":"tr","tag":"Geliştirici Kılavuzları","count":48},{"language":"en","tag":"Developer Guides","count":47},{"language":"pt-BR","tag":"Guia de desenvolvedor","count":47},{"language":"en","tag":"Integrations","count":37},{"language":"es","tag":"Integraciones","count":37},{"language":"fr","tag":"Intégrations","count":37},{"language":"ja","tag":"統合","count":37},{"language":"ko","tag":"통합","count":37},{"language":"pt-BR","tag":"Integrações","count":37},{"language":"tr","tag":"Entegrasyonlar","count":37},{"language":"cn","tag":"集成","count":36},{"language":"en","tag":"Tutorials","count":35},{"language":"cn","tag":"推送通知","count":31},{"language":"cn","tag":"OneSignal 作为目的地","count":31},{"language":"en","tag":"Push","count":31},{"language":"en","tag":"OneSignal as destination","count":31},{"language":"es","tag":"Push notificaciones","count":31},{"language":"es","tag":"OneSignal como destino","count":31},{"language":"fr","tag":"Push","count":31},{"language":"fr","tag":"OneSignal comme destination","count":31},{"language":"ja","tag":"プッシュ通知","count":31},{"language":"ja","tag":"OneSignal as 宛先","count":31},{"language":"ko","tag":"푸시","count":31},{"language":"ko","tag":"OneSignal을 데이터 목적지로 사용","count":31},{"language":"pt-BR","tag":"Push notificações","count":31},{"language":"pt-BR","tag":"OneSignal como destino","count":31},{"language":"tr","tag":"Anlık bildirimler","count":31},{"language":"tr","tag":"OneSignal hedef","count":31},{"language":"en","tag":"Mobile SDKs","count":26},{"language":"cn","tag":"移动SDK","count":25},{"language":"es","tag":"SDKs móviles","count":25},{"language":"fr","tag":"SDK mobiles","count":25},{"language":"ja","tag":"モバイルSDK","count":25},{"language":"ko","tag":"모바일 SDKs","count":25},{"language":"pt-BR","tag":"SDKs móveis","count":25},{"language":"tr","tag":"Mobil SDK'lar","count":25},{"language":"cn","tag":"教程","count":24},{"language":"es","tag":"Tutoriales","count":24},{"language":"fr","tag":"Tutoriels","count":24},{"language":"ja","tag":"チュートリアル","count":24},{"language":"ko","tag":"튜토리얼","count":24},{"language":"pt-BR","tag":"Tutoriais","count":24},{"language":"tr","tag":"Eğitimler","count":24},{"language":"en","tag":"Mobile SDK setup","count":19},{"language":"cn","tag":"移动SDK设置","count":18},{"language":"es","tag":"Configuración del SDK móvil","count":18},{"language":"fr","tag":"Configuration SDK mobile","count":18},{"language":"ja","tag":"モバイルSDKセットアップ","count":18},{"language":"ko","tag":"모바일 SDK 설정","count":18},{"language":"pt-BR","tag":"Configuração do SDK móvel","count":18},{"language":"tr","tag":"Mobil SDK kurulumu","count":18},{"language":"default","tag":"Messages","count":9},{"language":"default","tag":"Users","count":9},{"language":"default","tag":"Organization","count":9},{"language":"default","tag":"Journeys","count":8},{"language":"default","tag":"Deprecated","count":6},{"language":"default","tag":"Templates","count":6},{"language":"default","tag":"Subscriptions","count":6},{"language":"default","tag":"Segments","count":5}]},"assistantConfig":{"enableStarterQuestions":false,"deflection":{"enabled":true,"email":"support@onesignal.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"docs/cn/browser-behavior-and-unsubscribes","slug":"/docs/cn/browser-behavior-and-unsubscribes","pageMetadata":{"title":"Web 推送浏览器行为","description":"了解如何取消订阅通知并理解浏览器如何处理 Web 推送订阅。","keywords":["web 推送取消订阅","onesignal web 推送","浏览器通知设置","推送通知权限","重置推送权限","取消订阅通知","测试推送通知","onesignal 铃当提示","清除站点数据通知","浏览器推送行为"],"href":"/docs/cn/browser-behavior-and-unsubscribes"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"了解如何取消订阅通知并理解浏览器如何处理 Web 推送订阅。\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Check,Frame,Heading,Note,OptimizedImage,Step,Steps,Table}=_components;if(!Check)_missingMdxReference(`Check`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`本指南解释如何管理 Web 推送 `,_jsx(_components.a,{href:`/docs/cn/subscriptions`,children:`订阅`}),` 以及订阅状态如何受到用户操作和浏览器行为的影响。`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`理解推送权限`,children:`理解推送权限`}),`\n`,_jsx(_components.p,{children:`用户必须给予您的网站权限才能向他们发送推送通知。如果不使用系统级权限提示明确授予站点权限,就不可能接收推送通知。`}),`\n`,_jsx(Frame,{caption:`Chrome 必需的系统级权限提示示例,您必须点击'允许'才能接收此站点的推送通知。`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/60324a7f57f452db6054d4442689b8fb7f269f8dc123cc5b4154481ae8b89db4-Screenshot_2025-04-07_at_12.08.33_PM.png?fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=6d9631d8e6c3fb165068b20259df4457`,\"data-og-width\":`1578`,width:`1578`,\"data-og-height\":`974`,height:`974`,\"data-path\":`images/docs/60324a7f57f452db6054d4442689b8fb7f269f8dc123cc5b4154481ae8b89db4-Screenshot_2025-04-07_at_12.08.33_PM.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/60324a7f57f452db6054d4442689b8fb7f269f8dc123cc5b4154481ae8b89db4-Screenshot_2025-04-07_at_12.08.33_PM.png?w=280\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=ae59c5109bc6016ba6fc925ca2c5e345 280w, https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/60324a7f57f452db6054d4442689b8fb7f269f8dc123cc5b4154481ae8b89db4-Screenshot_2025-04-07_at_12.08.33_PM.png?w=560\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=9001db9d02e44cd8c51fcbf4f18b9868 560w, https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/60324a7f57f452db6054d4442689b8fb7f269f8dc123cc5b4154481ae8b89db4-Screenshot_2025-04-07_at_12.08.33_PM.png?w=840\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=fa6c4cca3bacacde8197aa4e36f1fbab 840w, https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/60324a7f57f452db6054d4442689b8fb7f269f8dc123cc5b4154481ae8b89db4-Screenshot_2025-04-07_at_12.08.33_PM.png?w=1100\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=7f1b61b19e0bdb37657a211010b8bb79 1100w, https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/60324a7f57f452db6054d4442689b8fb7f269f8dc123cc5b4154481ae8b89db4-Screenshot_2025-04-07_at_12.08.33_PM.png?w=1650\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=3c327da29bae6184b281b056ebc3df0c 1650w, https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/60324a7f57f452db6054d4442689b8fb7f269f8dc123cc5b4154481ae8b89db4-Screenshot_2025-04-07_at_12.08.33_PM.png?w=2500\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=f8e911339d3b3acde2bfad9ed4ffc44a 2500w`})}),`\n`,_jsx(_components.p,{children:`权限可以是:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Default`}),`: permission has not been granted to denied.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Granted`}),`: you allowed the website to send you notifications.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Denied`}),`: you blocked the website to send you notifications. This can be a temporary block if you clicked the `,_jsx(_components.strong,{children:`x`}),` to close the prompt repeatedly or a permanent block if you clicked `,_jsx(_components.strong,{children:`Block`}),` or toggled off permission in the browser settings.`]}),`\n`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`有关原生系统级权限提示和/或任何 OneSignal 提示的更多详情,请参阅 `,_jsx(_components.a,{href:`/docs/cn/permission-requests`,children:`Web 权限提示`}),`。`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`如何取消订阅-web-通知`,children:`如何取消订阅 Web 通知`}),`\n`,_jsx(_components.p,{children:`您可以通过三种方式取消订阅 Web 推送通知:`}),`\n`,_jsx(Heading,{level:`3`,id:`在浏览器设置中取消订阅`,children:`在浏览器设置中取消订阅`}),`\n`,_jsx(_components.p,{children:`您可以在浏览器设置中直接管理或删除通知权限。这里是快速访问 URL 和官方文档以了解更多信息:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Chrome`}),`: `,_jsx(_components.code,{children:`chrome://settings/content/notifications`}),` (`,_jsx(_components.a,{href:`https://support.google.com/chrome/answer/3220216?hl=en\u0026co=GENIE.Platform%3DDesktop\u0026sjid=12874758545589453111-NA`,children:`Learn more on Chrome’s docs`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Edge`}),`: `,_jsx(_components.code,{children:`edge://settings/content/notifications`}),` (`,_jsx(_components.a,{href:`https://www.microsoft.com/en-us/edge/learning-center/how-to-turn-off-block-browser-notifications?form=MA13I2`,children:`Learn more on Microsoft’s docs`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Firefox`}),`: `,_jsx(_components.code,{children:`about:preferences#privacy`}),` scroll to Permissions > Notifications > Settings (`,_jsx(_components.a,{href:`https://support.mozilla.org/en-US/kb/push-notifications-firefox`,children:`Learn more on Mozilla’s docs`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Safari`}),`: Settings > Websites > Notifications (`,_jsx(_components.a,{href:`https://support.apple.com/guide/safari/customize-website-notifications-sfri40734/16.1/mac/13.0`,children:`Learn more on Safari’s docs`}),`)`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`在这些页面上,只需点击选项删除或阻止您不希望接收通知的网站。`}),`\n`,_jsx(Heading,{level:`3`,id:`在网站上取消订阅`,children:`在网站上取消订阅`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Reset permission`})}),`\n`,_jsx(_components.p,{children:`大多数浏览器在 URL 旁边都有一个“锁”或“设置”图标。点击它会显示特定站点权限,用户可以在此处禁用推送通知。`}),`\n`,_jsx(Frame,{caption:`示例显示 Chrome 浏览器,您可以完全切换站点的推送权限或重置权限以允许站点再次提示您。`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/6264e883e1d4c19f71712be79859cf48e26a47d4283571846d3e585ca2d26d6b-Screenshot_2025-04-07_at_10.56.32_AM.png?fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=38fbcf821abf6b7077e5e4b1e736ecb9`,\"data-og-width\":`1636`,width:`1636`,\"data-og-height\":`974`,height:`974`,\"data-path\":`images/docs/6264e883e1d4c19f71712be79859cf48e26a47d4283571846d3e585ca2d26d6b-Screenshot_2025-04-07_at_10.56.32_AM.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/6264e883e1d4c19f71712be79859cf48e26a47d4283571846d3e585ca2d26d6b-Screenshot_2025-04-07_at_10.56.32_AM.png?w=280\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=9ebb37c1ebe4a842bcd28f2d90d5c325 280w, https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/6264e883e1d4c19f71712be79859cf48e26a47d4283571846d3e585ca2d26d6b-Screenshot_2025-04-07_at_10.56.32_AM.png?w=560\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=c736f35991d909fd641cf429fefb9091 560w, https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/6264e883e1d4c19f71712be79859cf48e26a47d4283571846d3e585ca2d26d6b-Screenshot_2025-04-07_at_10.56.32_AM.png?w=840\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=550d519e9a199da1287e4901d9220301 840w, https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/6264e883e1d4c19f71712be79859cf48e26a47d4283571846d3e585ca2d26d6b-Screenshot_2025-04-07_at_10.56.32_AM.png?w=1100\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=baab3ea6da1aae8c36c46c5d900cb79a 1100w, https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/6264e883e1d4c19f71712be79859cf48e26a47d4283571846d3e585ca2d26d6b-Screenshot_2025-04-07_at_10.56.32_AM.png?w=1650\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=5c3c21447a6431155938ff6271627cbd 1650w, https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/6264e883e1d4c19f71712be79859cf48e26a47d4283571846d3e585ca2d26d6b-Screenshot_2025-04-07_at_10.56.32_AM.png?w=2500\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=212f296a28f5b87c1f460ca248198a05 2500w`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`OneSignal prompts`})}),`\n`,_jsxs(_components.p,{children:[`如果网站包含 OneSignal `,_jsx(_components.a,{href:`/docs/cn/permission-requests`,children:`铃当提示`}),`或`,_jsx(_components.a,{href:`/docs/cn/permission-requests`,children:`自定义链接提示`}),`,用户可以直接通过这些 UI 元素取消订阅,并能够按需使用相同方式重新订阅。`]}),`\n`,_jsx(Frame,{caption:`示例显示 OneSignal 铃当提示。`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/_KaXe4GQkxsEfa17/images/docs/400a59de59dcc7ec2cb46e09a29f99bbd1da11861bba418e76e7a0b90f86ed4d-Screenshot_2025-04-07_at_10.59.38_AM.png?fit=max\u0026auto=format\u0026n=_KaXe4GQkxsEfa17\u0026q=85\u0026s=3226ef886346ee6abbc25ebb17abf36b`,\"data-og-width\":`1636`,width:`1636`,\"data-og-height\":`974`,height:`974`,\"data-path\":`images/docs/400a59de59dcc7ec2cb46e09a29f99bbd1da11861bba418e76e7a0b90f86ed4d-Screenshot_2025-04-07_at_10.59.38_AM.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/_KaXe4GQkxsEfa17/images/docs/400a59de59dcc7ec2cb46e09a29f99bbd1da11861bba418e76e7a0b90f86ed4d-Screenshot_2025-04-07_at_10.59.38_AM.png?w=280\u0026fit=max\u0026auto=format\u0026n=_KaXe4GQkxsEfa17\u0026q=85\u0026s=fa89ae95db7a40cf84a5a858d53f974e 280w, https://mintcdn.com/onesignal/_KaXe4GQkxsEfa17/images/docs/400a59de59dcc7ec2cb46e09a29f99bbd1da11861bba418e76e7a0b90f86ed4d-Screenshot_2025-04-07_at_10.59.38_AM.png?w=560\u0026fit=max\u0026auto=format\u0026n=_KaXe4GQkxsEfa17\u0026q=85\u0026s=b67f80977412b97e7d574632aebf87ae 560w, https://mintcdn.com/onesignal/_KaXe4GQkxsEfa17/images/docs/400a59de59dcc7ec2cb46e09a29f99bbd1da11861bba418e76e7a0b90f86ed4d-Screenshot_2025-04-07_at_10.59.38_AM.png?w=840\u0026fit=max\u0026auto=format\u0026n=_KaXe4GQkxsEfa17\u0026q=85\u0026s=30efb348c18ff677dbd5fe8a8f84c785 840w, https://mintcdn.com/onesignal/_KaXe4GQkxsEfa17/images/docs/400a59de59dcc7ec2cb46e09a29f99bbd1da11861bba418e76e7a0b90f86ed4d-Screenshot_2025-04-07_at_10.59.38_AM.png?w=1100\u0026fit=max\u0026auto=format\u0026n=_KaXe4GQkxsEfa17\u0026q=85\u0026s=b3678deea101b63b7ded2b007dd448a9 1100w, https://mintcdn.com/onesignal/_KaXe4GQkxsEfa17/images/docs/400a59de59dcc7ec2cb46e09a29f99bbd1da11861bba418e76e7a0b90f86ed4d-Screenshot_2025-04-07_at_10.59.38_AM.png?w=1650\u0026fit=max\u0026auto=format\u0026n=_KaXe4GQkxsEfa17\u0026q=85\u0026s=0d3ff18663bc1b328a2ddcfd72bc870a 1650w, https://mintcdn.com/onesignal/_KaXe4GQkxsEfa17/images/docs/400a59de59dcc7ec2cb46e09a29f99bbd1da11861bba418e76e7a0b90f86ed4d-Screenshot_2025-04-07_at_10.59.38_AM.png?w=2500\u0026fit=max\u0026auto=format\u0026n=_KaXe4GQkxsEfa17\u0026q=85\u0026s=6f85d72573c036a8637e0de2ff78a105 2500w`})}),`\n`,_jsx(Heading,{level:`3`,id:`删除浏览器数据、清除-cookie-和站点数据`,children:`删除浏览器数据、清除 Cookie 和站点数据`}),`\n`,_jsx(_components.p,{children:`如果您删除历史记录和/或删除您的 Cookie 和网站数据,它将临时阻止通知显示。但是,如果您不从网站中删除推送权限,您可能会在返回网站时自动重新订阅并再次开始收到通知。`}),`\n`,_jsx(Frame,{caption:`示例显示清除浏览器历史记录和站点数据。`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/5e463a765566c11fee159b98a88f0a66314be75e16d7963296b53cfb880d0640-Screenshot_2025-04-07_at_11.56.43_AM.png?fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=c133664ca1396ee6ed0dcc03c20f9c9b`,\"data-og-width\":`2962`,width:`2962`,\"data-og-height\":`1458`,height:`1458`,\"data-path\":`images/docs/5e463a765566c11fee159b98a88f0a66314be75e16d7963296b53cfb880d0640-Screenshot_2025-04-07_at_11.56.43_AM.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/5e463a765566c11fee159b98a88f0a66314be75e16d7963296b53cfb880d0640-Screenshot_2025-04-07_at_11.56.43_AM.png?w=280\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=1ce6bc4fdad1580af29bad284199cb89 280w, https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/5e463a765566c11fee159b98a88f0a66314be75e16d7963296b53cfb880d0640-Screenshot_2025-04-07_at_11.56.43_AM.png?w=560\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=7b9e095a43ed25fca78f0c8a8792de28 560w, https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/5e463a765566c11fee159b98a88f0a66314be75e16d7963296b53cfb880d0640-Screenshot_2025-04-07_at_11.56.43_AM.png?w=840\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=5e002cd833d8640ae54fe3a264517ebc 840w, https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/5e463a765566c11fee159b98a88f0a66314be75e16d7963296b53cfb880d0640-Screenshot_2025-04-07_at_11.56.43_AM.png?w=1100\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=8373c209164a32023daeaba5056bf5ae 1100w, https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/5e463a765566c11fee159b98a88f0a66314be75e16d7963296b53cfb880d0640-Screenshot_2025-04-07_at_11.56.43_AM.png?w=1650\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=a0813cdb90d1115c063be3b53c21a061 1650w, https://mintcdn.com/onesignal/jFWn5xzleD8du3j6/images/docs/5e463a765566c11fee159b98a88f0a66314be75e16d7963296b53cfb880d0640-Screenshot_2025-04-07_at_11.56.43_AM.png?w=2500\u0026fit=max\u0026auto=format\u0026n=jFWn5xzleD8du3j6\u0026q=85\u0026s=1f99e45813d449c1688f85aeae61662c 2500w`})}),`\n`,_jsx(`br`,{}),`\n`,_jsx(Frame,{caption:`示例显示清除站点数据。`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/6tscVAtiSqz353kV/images/docs/9e18eb2c46e65b05e98bfe488268daaf8e1cb3d958767393b9e935de3189327c-Screenshot_2025-04-07_at_11.56.34_AM.png?fit=max\u0026auto=format\u0026n=6tscVAtiSqz353kV\u0026q=85\u0026s=56d550b0d11955804d5b7f6a71544125`,\"data-og-width\":`2962`,width:`2962`,\"data-og-height\":`1458`,height:`1458`,\"data-path\":`images/docs/9e18eb2c46e65b05e98bfe488268daaf8e1cb3d958767393b9e935de3189327c-Screenshot_2025-04-07_at_11.56.34_AM.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/6tscVAtiSqz353kV/images/docs/9e18eb2c46e65b05e98bfe488268daaf8e1cb3d958767393b9e935de3189327c-Screenshot_2025-04-07_at_11.56.34_AM.png?w=280\u0026fit=max\u0026auto=format\u0026n=6tscVAtiSqz353kV\u0026q=85\u0026s=247d12bff28aaa9ac60f1035e2fef7ff 280w, https://mintcdn.com/onesignal/6tscVAtiSqz353kV/images/docs/9e18eb2c46e65b05e98bfe488268daaf8e1cb3d958767393b9e935de3189327c-Screenshot_2025-04-07_at_11.56.34_AM.png?w=560\u0026fit=max\u0026auto=format\u0026n=6tscVAtiSqz353kV\u0026q=85\u0026s=f14286da0fe11c3cd74a14c3ff27fe0c 560w, https://mintcdn.com/onesignal/6tscVAtiSqz353kV/images/docs/9e18eb2c46e65b05e98bfe488268daaf8e1cb3d958767393b9e935de3189327c-Screenshot_2025-04-07_at_11.56.34_AM.png?w=840\u0026fit=max\u0026auto=format\u0026n=6tscVAtiSqz353kV\u0026q=85\u0026s=ea46733b8280c557aa5d7af1046491fc 840w, https://mintcdn.com/onesignal/6tscVAtiSqz353kV/images/docs/9e18eb2c46e65b05e98bfe488268daaf8e1cb3d958767393b9e935de3189327c-Screenshot_2025-04-07_at_11.56.34_AM.png?w=1100\u0026fit=max\u0026auto=format\u0026n=6tscVAtiSqz353kV\u0026q=85\u0026s=0db0ad9f4e33da68c8e60ab7455b68a6 1100w, https://mintcdn.com/onesignal/6tscVAtiSqz353kV/images/docs/9e18eb2c46e65b05e98bfe488268daaf8e1cb3d958767393b9e935de3189327c-Screenshot_2025-04-07_at_11.56.34_AM.png?w=1650\u0026fit=max\u0026auto=format\u0026n=6tscVAtiSqz353kV\u0026q=85\u0026s=fcf28cef9fce6c389e30ddf764ff7843 1650w, https://mintcdn.com/onesignal/6tscVAtiSqz353kV/images/docs/9e18eb2c46e65b05e98bfe488268daaf8e1cb3d958767393b9e935de3189327c-Screenshot_2025-04-07_at_11.56.34_AM.png?w=2500\u0026fit=max\u0026auto=format\u0026n=6tscVAtiSqz353kV\u0026q=85\u0026s=b9ce1b3360f931684c6a75caeb92d45f 2500w`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`如何测试您的权限提示`,children:`如何测试您的权限提示`}),`\n`,_jsx(_components.p,{children:`这些步骤解释如何像首次访问者一样测试您的提示和订阅流程。`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`访问已设置 OneSignal SDK 的站点。`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Do not use an incognito, private, or guest browser setting.`}),` This example uses Chrome version 135 on macOS but the flow should be relatively the same for most browsers.`]})}),_jsxs(Step,{title:`重置推送权限`,children:[_jsxs(_components.p,{children:[`Click the site settings or lock icon next to the site URL and select `,_jsx(_components.strong,{children:`Reset permission`}),` or remove permissions for Notifications.\nSkip to the next step if you don’t see this permission option.`]}),_jsx(Frame,{caption:`Chrome 站点设置菜单 > 重置通知权限。`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/6v_cVPknFpo5qSVB/images/docs/0caa8967d5d339eb83795e9c8aae6fd58dfb370e7937eec2689286bc37b7d3ad-Screenshot_2025-04-07_at_1.15.10_PM.png?fit=max\u0026auto=format\u0026n=6v_cVPknFpo5qSVB\u0026q=85\u0026s=cc627d94184116ba58ab88a9ebd192b3`,\"data-og-width\":`1642`,width:`1642`,\"data-og-height\":`1038`,height:`1038`,\"data-path\":`images/docs/0caa8967d5d339eb83795e9c8aae6fd58dfb370e7937eec2689286bc37b7d3ad-Screenshot_2025-04-07_at_1.15.10_PM.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/6v_cVPknFpo5qSVB/images/docs/0caa8967d5d339eb83795e9c8aae6fd58dfb370e7937eec2689286bc37b7d3ad-Screenshot_2025-04-07_at_1.15.10_PM.png?w=280\u0026fit=max\u0026auto=format\u0026n=6v_cVPknFpo5qSVB\u0026q=85\u0026s=484f1af162d8ce039d11d805443c4fb8 280w, https://mintcdn.com/onesignal/6v_cVPknFpo5qSVB/images/docs/0caa8967d5d339eb83795e9c8aae6fd58dfb370e7937eec2689286bc37b7d3ad-Screenshot_2025-04-07_at_1.15.10_PM.png?w=560\u0026fit=max\u0026auto=format\u0026n=6v_cVPknFpo5qSVB\u0026q=85\u0026s=fc4c8db174afadb3bed1016f3784a245 560w, https://mintcdn.com/onesignal/6v_cVPknFpo5qSVB/images/docs/0caa8967d5d339eb83795e9c8aae6fd58dfb370e7937eec2689286bc37b7d3ad-Screenshot_2025-04-07_at_1.15.10_PM.png?w=840\u0026fit=max\u0026auto=format\u0026n=6v_cVPknFpo5qSVB\u0026q=85\u0026s=9c9d5f238a37b7944eb02c1c22e19fc7 840w, https://mintcdn.com/onesignal/6v_cVPknFpo5qSVB/images/docs/0caa8967d5d339eb83795e9c8aae6fd58dfb370e7937eec2689286bc37b7d3ad-Screenshot_2025-04-07_at_1.15.10_PM.png?w=1100\u0026fit=max\u0026auto=format\u0026n=6v_cVPknFpo5qSVB\u0026q=85\u0026s=807f1c6413c1d2421378901dad946a89 1100w, https://mintcdn.com/onesignal/6v_cVPknFpo5qSVB/images/docs/0caa8967d5d339eb83795e9c8aae6fd58dfb370e7937eec2689286bc37b7d3ad-Screenshot_2025-04-07_at_1.15.10_PM.png?w=1650\u0026fit=max\u0026auto=format\u0026n=6v_cVPknFpo5qSVB\u0026q=85\u0026s=35de14555b68c1eb847de818144576e1 1650w, https://mintcdn.com/onesignal/6v_cVPknFpo5qSVB/images/docs/0caa8967d5d339eb83795e9c8aae6fd58dfb370e7937eec2689286bc37b7d3ad-Screenshot_2025-04-07_at_1.15.10_PM.png?w=2500\u0026fit=max\u0026auto=format\u0026n=6v_cVPknFpo5qSVB\u0026q=85\u0026s=8c6783ff55bb4eb4c2752daceeb40ee9 2500w`})})]}),_jsxs(Step,{title:`删除站点数据。`,children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Cookies and site data > Manage on-device site data`}),` or follow the browser’s flow to see your site’s data option.`]}),_jsx(Frame,{caption:`Chrome 的设备上站点数据屏幕。`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/_KaXe4GQkxsEfa17/images/docs/3ddc97a656d2a7e72851bb723c3ef6bb7cf451f43f2980b6e16326b34ad0694d-Screenshot_2025-04-07_at_1.17.51_PM.png?fit=max\u0026auto=format\u0026n=_KaXe4GQkxsEfa17\u0026q=85\u0026s=cc96365a817a37b63a008bf300dba8b2`,\"data-og-width\":`1642`,width:`1642`,\"data-og-height\":`1264`,height:`1264`,\"data-path\":`images/docs/3ddc97a656d2a7e72851bb723c3ef6bb7cf451f43f2980b6e16326b34ad0694d-Screenshot_2025-04-07_at_1.17.51_PM.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/_KaXe4GQkxsEfa17/images/docs/3ddc97a656d2a7e72851bb723c3ef6bb7cf451f43f2980b6e16326b34ad0694d-Screenshot_2025-04-07_at_1.17.51_PM.png?w=280\u0026fit=max\u0026auto=format\u0026n=_KaXe4GQkxsEfa17\u0026q=85\u0026s=75f0546c4fa3d9006016013fc14da028 280w, https://mintcdn.com/onesignal/_KaXe4GQkxsEfa17/images/docs/3ddc97a656d2a7e72851bb723c3ef6bb7cf451f43f2980b6e16326b34ad0694d-Screenshot_2025-04-07_at_1.17.51_PM.png?w=560\u0026fit=max\u0026auto=format\u0026n=_KaXe4GQkxsEfa17\u0026q=85\u0026s=b7a621192c1a05b0a11edda86048c7dd 560w, https://mintcdn.com/onesignal/_KaXe4GQkxsEfa17/images/docs/3ddc97a656d2a7e72851bb723c3ef6bb7cf451f43f2980b6e16326b34ad0694d-Screenshot_2025-04-07_at_1.17.51_PM.png?w=840\u0026fit=max\u0026auto=format\u0026n=_KaXe4GQkxsEfa17\u0026q=85\u0026s=475272ad4f40dea417fca2c2367d15c4 840w, https://mintcdn.com/onesignal/_KaXe4GQkxsEfa17/images/docs/3ddc97a656d2a7e72851bb723c3ef6bb7cf451f43f2980b6e16326b34ad0694d-Screenshot_2025-04-07_at_1.17.51_PM.png?w=1100\u0026fit=max\u0026auto=format\u0026n=_KaXe4GQkxsEfa17\u0026q=85\u0026s=b613ad772ed80237993eddc8959711d0 1100w, https://mintcdn.com/onesignal/_KaXe4GQkxsEfa17/images/docs/3ddc97a656d2a7e72851bb723c3ef6bb7cf451f43f2980b6e16326b34ad0694d-Screenshot_2025-04-07_at_1.17.51_PM.png?w=1650\u0026fit=max\u0026auto=format\u0026n=_KaXe4GQkxsEfa17\u0026q=85\u0026s=03540a484c3f9da6104984626fd59465 1650w, https://mintcdn.com/onesignal/_KaXe4GQkxsEfa17/images/docs/3ddc97a656d2a7e72851bb723c3ef6bb7cf451f43f2980b6e16326b34ad0694d-Screenshot_2025-04-07_at_1.17.51_PM.png?w=2500\u0026fit=max\u0026auto=format\u0026n=_KaXe4GQkxsEfa17\u0026q=85\u0026s=3fbd335b1ee6ea60a552b6c69c9296d5 2500w`})}),_jsx(_components.p,{children:`删除您网站的数据并退出设置以返回您的网站。`}),_jsx(Frame,{caption:`示例显示清除您的站点 Cookie。`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/tNi1OgLc_p9hiq7_/images/docs/14356bf800a63a9cb7ce3396c86ab636720ff152d65f266cb253142266b246d2-Screenshot_2025-04-07_at_1.22.02_PM.png?fit=max\u0026auto=format\u0026n=tNi1OgLc_p9hiq7_\u0026q=85\u0026s=61dcb2f2c4967bf79dfd609b820a2507`,\"data-og-width\":`1554`,width:`1554`,\"data-og-height\":`1216`,height:`1216`,\"data-path\":`images/docs/14356bf800a63a9cb7ce3396c86ab636720ff152d65f266cb253142266b246d2-Screenshot_2025-04-07_at_1.22.02_PM.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/tNi1OgLc_p9hiq7_/images/docs/14356bf800a63a9cb7ce3396c86ab636720ff152d65f266cb253142266b246d2-Screenshot_2025-04-07_at_1.22.02_PM.png?w=280\u0026fit=max\u0026auto=format\u0026n=tNi1OgLc_p9hiq7_\u0026q=85\u0026s=6487bbb2e3752fdac1e5ae1bf3302305 280w, https://mintcdn.com/onesignal/tNi1OgLc_p9hiq7_/images/docs/14356bf800a63a9cb7ce3396c86ab636720ff152d65f266cb253142266b246d2-Screenshot_2025-04-07_at_1.22.02_PM.png?w=560\u0026fit=max\u0026auto=format\u0026n=tNi1OgLc_p9hiq7_\u0026q=85\u0026s=77fedea75d5afe3557e8cb04cf4a1c22 560w, https://mintcdn.com/onesignal/tNi1OgLc_p9hiq7_/images/docs/14356bf800a63a9cb7ce3396c86ab636720ff152d65f266cb253142266b246d2-Screenshot_2025-04-07_at_1.22.02_PM.png?w=840\u0026fit=max\u0026auto=format\u0026n=tNi1OgLc_p9hiq7_\u0026q=85\u0026s=98170cd7c4f5fa7b2c9946dad3c244d5 840w, https://mintcdn.com/onesignal/tNi1OgLc_p9hiq7_/images/docs/14356bf800a63a9cb7ce3396c86ab636720ff152d65f266cb253142266b246d2-Screenshot_2025-04-07_at_1.22.02_PM.png?w=1100\u0026fit=max\u0026auto=format\u0026n=tNi1OgLc_p9hiq7_\u0026q=85\u0026s=4617441e0661a36d0f438bb7bbd691aa 1100w, https://mintcdn.com/onesignal/tNi1OgLc_p9hiq7_/images/docs/14356bf800a63a9cb7ce3396c86ab636720ff152d65f266cb253142266b246d2-Screenshot_2025-04-07_at_1.22.02_PM.png?w=1650\u0026fit=max\u0026auto=format\u0026n=tNi1OgLc_p9hiq7_\u0026q=85\u0026s=b626d96d46d35dec62bd782e585e56df 1650w, https://mintcdn.com/onesignal/tNi1OgLc_p9hiq7_/images/docs/14356bf800a63a9cb7ce3396c86ab636720ff152d65f266cb253142266b246d2-Screenshot_2025-04-07_at_1.22.02_PM.png?w=2500\u0026fit=max\u0026auto=format\u0026n=tNi1OgLc_p9hiq7_\u0026q=85\u0026s=9f708560ad3e98ad2587ed84518c77b6 2500w`})})]}),_jsxs(Step,{title:`打开开发者工具。`,children:[`Usually you can just right click the screen and press `,_jsx(_components.strong,{children:`Inspect`}),`.`]}),_jsxs(Step,{title:`按照步骤提示推送通知,在所需的系统级权限提示中选择\"允许\"。`,children:[_jsxs(_components.p,{children:[`If you do not see the prompt or don’t know the steps, see `,_jsx(_components.a,{href:`/docs/cn/permission-requests`,children:`Web permission prompts`}),`.`]}),_jsx(Frame,{caption:`示例显示 Chrome 必需的系统级提示。`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/tc0EvmtSSX56SX0c/images/docs/99abfc40c2cbce6d99a32295716ba683e77a1ef4c3d8e26736d1448a62513703-Screenshot_2025-04-07_at_1.22.55_PM.png?fit=max\u0026auto=format\u0026n=tc0EvmtSSX56SX0c\u0026q=85\u0026s=d522e924e8cf68c5e2e331705571159b`,\"data-og-width\":`1642`,width:`1642`,\"data-og-height\":`1038`,height:`1038`,\"data-path\":`images/docs/99abfc40c2cbce6d99a32295716ba683e77a1ef4c3d8e26736d1448a62513703-Screenshot_2025-04-07_at_1.22.55_PM.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/tc0EvmtSSX56SX0c/images/docs/99abfc40c2cbce6d99a32295716ba683e77a1ef4c3d8e26736d1448a62513703-Screenshot_2025-04-07_at_1.22.55_PM.png?w=280\u0026fit=max\u0026auto=format\u0026n=tc0EvmtSSX56SX0c\u0026q=85\u0026s=f080d9146123a2c1f7c97ea8dc7d6ef5 280w, https://mintcdn.com/onesignal/tc0EvmtSSX56SX0c/images/docs/99abfc40c2cbce6d99a32295716ba683e77a1ef4c3d8e26736d1448a62513703-Screenshot_2025-04-07_at_1.22.55_PM.png?w=560\u0026fit=max\u0026auto=format\u0026n=tc0EvmtSSX56SX0c\u0026q=85\u0026s=ec4bc42877e6b47ba5b7f0a8f4e439cc 560w, https://mintcdn.com/onesignal/tc0EvmtSSX56SX0c/images/docs/99abfc40c2cbce6d99a32295716ba683e77a1ef4c3d8e26736d1448a62513703-Screenshot_2025-04-07_at_1.22.55_PM.png?w=840\u0026fit=max\u0026auto=format\u0026n=tc0EvmtSSX56SX0c\u0026q=85\u0026s=65731c4156e1edd412f9d166b9fcb282 840w, https://mintcdn.com/onesignal/tc0EvmtSSX56SX0c/images/docs/99abfc40c2cbce6d99a32295716ba683e77a1ef4c3d8e26736d1448a62513703-Screenshot_2025-04-07_at_1.22.55_PM.png?w=1100\u0026fit=max\u0026auto=format\u0026n=tc0EvmtSSX56SX0c\u0026q=85\u0026s=69505fda1d0b54a57e2751b0e7659848 1100w, https://mintcdn.com/onesignal/tc0EvmtSSX56SX0c/images/docs/99abfc40c2cbce6d99a32295716ba683e77a1ef4c3d8e26736d1448a62513703-Screenshot_2025-04-07_at_1.22.55_PM.png?w=1650\u0026fit=max\u0026auto=format\u0026n=tc0EvmtSSX56SX0c\u0026q=85\u0026s=291211eb44441ec0ef03014cfaa39857 1650w, https://mintcdn.com/onesignal/tc0EvmtSSX56SX0c/images/docs/99abfc40c2cbce6d99a32295716ba683e77a1ef4c3d8e26736d1448a62513703-Screenshot_2025-04-07_at_1.22.55_PM.png?w=2500\u0026fit=max\u0026auto=format\u0026n=tc0EvmtSSX56SX0c\u0026q=85\u0026s=96638ee312d01d2f2e4f0707b9b4f070 2500w`})})]}),_jsx(Step,{title:`检查控制台是否有任何错误。`,children:_jsxs(_components.p,{children:[`If you see anything in red related to OneSignal, see our `,_jsx(_components.a,{href:`/docs/cn/troubleshooting-web-push`,children:`Web SDK troubleshooting`}),` docs.`]})}),_jsxs(Step,{title:`获取订阅 ID`,children:[_jsxs(_components.p,{children:[`在`,_jsx(_components.strong,{children:`控制台`}),`中输入或复制粘贴此代码:`,_jsx(_components.code,{children:`OneSignal.User.PushSubscription.id`})]}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`这将记录您的 OneSignal 订阅 ID。将其复制粘贴到 OneSignal 仪表板的受众 > 订阅选项卡中。`}),`\n`,_jsxs(_components.li,{children:[`如果控制台中未记录订阅 ID,则您未成功订阅。请查看 `,_jsx(_components.a,{href:`/docs/cn/troubleshooting-web-push`,children:`Web SDK 故障排除`}),` 了解详情。`]}),`\n`]}),_jsx(Frame,{caption:`使用控制台获取推送订阅 ID。`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/6v_cVPknFpo5qSVB/images/docs/0585c363af7bf9154c7cd204b9ce4636049694af313c80564ab94c75dc898da3-Screenshot_2025-04-07_at_1.35.26_PM.png?fit=max\u0026auto=format\u0026n=6v_cVPknFpo5qSVB\u0026q=85\u0026s=96e4c0b9515e7e62cb3e29ed0afdc8a5`,\"data-og-width\":`1642`,width:`1642`,\"data-og-height\":`1038`,height:`1038`,\"data-path\":`images/docs/0585c363af7bf9154c7cd204b9ce4636049694af313c80564ab94c75dc898da3-Screenshot_2025-04-07_at_1.35.26_PM.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/6v_cVPknFpo5qSVB/images/docs/0585c363af7bf9154c7cd204b9ce4636049694af313c80564ab94c75dc898da3-Screenshot_2025-04-07_at_1.35.26_PM.png?w=280\u0026fit=max\u0026auto=format\u0026n=6v_cVPknFpo5qSVB\u0026q=85\u0026s=704b1b82b7a8667e8c2f4c5918e43d06 280w, https://mintcdn.com/onesignal/6v_cVPknFpo5qSVB/images/docs/0585c363af7bf9154c7cd204b9ce4636049694af313c80564ab94c75dc898da3-Screenshot_2025-04-07_at_1.35.26_PM.png?w=560\u0026fit=max\u0026auto=format\u0026n=6v_cVPknFpo5qSVB\u0026q=85\u0026s=530caa7c4595f2873a685fe94e5c2b84 560w, https://mintcdn.com/onesignal/6v_cVPknFpo5qSVB/images/docs/0585c363af7bf9154c7cd204b9ce4636049694af313c80564ab94c75dc898da3-Screenshot_2025-04-07_at_1.35.26_PM.png?w=840\u0026fit=max\u0026auto=format\u0026n=6v_cVPknFpo5qSVB\u0026q=85\u0026s=20888b4a61ff42f829e23c5a91b370de 840w, https://mintcdn.com/onesignal/6v_cVPknFpo5qSVB/images/docs/0585c363af7bf9154c7cd204b9ce4636049694af313c80564ab94c75dc898da3-Screenshot_2025-04-07_at_1.35.26_PM.png?w=1100\u0026fit=max\u0026auto=format\u0026n=6v_cVPknFpo5qSVB\u0026q=85\u0026s=48c77e0580c5286c46ca612ad6c1a795 1100w, https://mintcdn.com/onesignal/6v_cVPknFpo5qSVB/images/docs/0585c363af7bf9154c7cd204b9ce4636049694af313c80564ab94c75dc898da3-Screenshot_2025-04-07_at_1.35.26_PM.png?w=1650\u0026fit=max\u0026auto=format\u0026n=6v_cVPknFpo5qSVB\u0026q=85\u0026s=ed280ced1f18eba1cdc50bba1ccd1cbf 1650w, https://mintcdn.com/onesignal/6v_cVPknFpo5qSVB/images/docs/0585c363af7bf9154c7cd204b9ce4636049694af313c80564ab94c75dc898da3-Screenshot_2025-04-07_at_1.35.26_PM.png?w=2500\u0026fit=max\u0026auto=format\u0026n=6v_cVPknFpo5qSVB\u0026q=85\u0026s=a97195a52a2e0459398a3f7f5344e52c 2500w`})}),_jsx(Frame,{caption:`在 OneSignal 控制板订阅页面查看订阅 ID。`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/tc0EvmtSSX56SX0c/images/docs/97de08625efcb3ae048d8db0ce79ab6400d4edb1e32fb586ee2ccfdec64ef533-Screenshot_2025-04-07_at_1.35.39_PM.png?fit=max\u0026auto=format\u0026n=tc0EvmtSSX56SX0c\u0026q=85\u0026s=f0e59d2577e9301240efca039c941212`,\"data-og-width\":`2268`,width:`2268`,\"data-og-height\":`1320`,height:`1320`,\"data-path\":`images/docs/97de08625efcb3ae048d8db0ce79ab6400d4edb1e32fb586ee2ccfdec64ef533-Screenshot_2025-04-07_at_1.35.39_PM.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/tc0EvmtSSX56SX0c/images/docs/97de08625efcb3ae048d8db0ce79ab6400d4edb1e32fb586ee2ccfdec64ef533-Screenshot_2025-04-07_at_1.35.39_PM.png?w=280\u0026fit=max\u0026auto=format\u0026n=tc0EvmtSSX56SX0c\u0026q=85\u0026s=49489389e0cfb2ad751041e4b1722d27 280w, https://mintcdn.com/onesignal/tc0EvmtSSX56SX0c/images/docs/97de08625efcb3ae048d8db0ce79ab6400d4edb1e32fb586ee2ccfdec64ef533-Screenshot_2025-04-07_at_1.35.39_PM.png?w=560\u0026fit=max\u0026auto=format\u0026n=tc0EvmtSSX56SX0c\u0026q=85\u0026s=ab40efc4ac774e62c50282b50a81bac4 560w, https://mintcdn.com/onesignal/tc0EvmtSSX56SX0c/images/docs/97de08625efcb3ae048d8db0ce79ab6400d4edb1e32fb586ee2ccfdec64ef533-Screenshot_2025-04-07_at_1.35.39_PM.png?w=840\u0026fit=max\u0026auto=format\u0026n=tc0EvmtSSX56SX0c\u0026q=85\u0026s=59eb71cab9cdcc92ccff5e9bffa43505 840w, https://mintcdn.com/onesignal/tc0EvmtSSX56SX0c/images/docs/97de08625efcb3ae048d8db0ce79ab6400d4edb1e32fb586ee2ccfdec64ef533-Screenshot_2025-04-07_at_1.35.39_PM.png?w=1100\u0026fit=max\u0026auto=format\u0026n=tc0EvmtSSX56SX0c\u0026q=85\u0026s=3ce4ec0b7949fbdbdea8c5a87434aa35 1100w, https://mintcdn.com/onesignal/tc0EvmtSSX56SX0c/images/docs/97de08625efcb3ae048d8db0ce79ab6400d4edb1e32fb586ee2ccfdec64ef533-Screenshot_2025-04-07_at_1.35.39_PM.png?w=1650\u0026fit=max\u0026auto=format\u0026n=tc0EvmtSSX56SX0c\u0026q=85\u0026s=bf0d7f4e85b11df60c1c5a39aa6901bd 1650w, https://mintcdn.com/onesignal/tc0EvmtSSX56SX0c/images/docs/97de08625efcb3ae048d8db0ce79ab6400d4edb1e32fb586ee2ccfdec64ef533-Screenshot_2025-04-07_at_1.35.39_PM.png?w=2500\u0026fit=max\u0026auto=format\u0026n=tc0EvmtSSX56SX0c\u0026q=85\u0026s=eda1a510be4036f312d6bd7120a25956 2500w`})})]}),_jsx(Step,{title:`在订阅旁边,选择 3 个点的选项按钮并选择\"添加到测试订阅\"。然后命名和标记测试用户以便识别。`,children:_jsx(Frame,{caption:`将您的订阅添加为测试订阅。`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/Z6xkXGfmy814If53/images/docs/daee83f7f444a1361390186abfd493252ae59b8ffbdb42f4a14fd979f2f9e268-Screenshot_2025-04-07_at_1.35.46_PM.png?fit=max\u0026auto=format\u0026n=Z6xkXGfmy814If53\u0026q=85\u0026s=65ddc58a9861c912ccc19abe1225c6aa`,\"data-og-width\":`2268`,width:`2268`,\"data-og-height\":`1320`,height:`1320`,\"data-path\":`images/docs/daee83f7f444a1361390186abfd493252ae59b8ffbdb42f4a14fd979f2f9e268-Screenshot_2025-04-07_at_1.35.46_PM.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/Z6xkXGfmy814If53/images/docs/daee83f7f444a1361390186abfd493252ae59b8ffbdb42f4a14fd979f2f9e268-Screenshot_2025-04-07_at_1.35.46_PM.png?w=280\u0026fit=max\u0026auto=format\u0026n=Z6xkXGfmy814If53\u0026q=85\u0026s=39492d7b81657a4cc3acdb873ae9a9d3 280w, https://mintcdn.com/onesignal/Z6xkXGfmy814If53/images/docs/daee83f7f444a1361390186abfd493252ae59b8ffbdb42f4a14fd979f2f9e268-Screenshot_2025-04-07_at_1.35.46_PM.png?w=560\u0026fit=max\u0026auto=format\u0026n=Z6xkXGfmy814If53\u0026q=85\u0026s=a1dacf5d922a733880fc2cba9af59a0f 560w, https://mintcdn.com/onesignal/Z6xkXGfmy814If53/images/docs/daee83f7f444a1361390186abfd493252ae59b8ffbdb42f4a14fd979f2f9e268-Screenshot_2025-04-07_at_1.35.46_PM.png?w=840\u0026fit=max\u0026auto=format\u0026n=Z6xkXGfmy814If53\u0026q=85\u0026s=d7fe7a7552576e9e3f68babb2fbab580 840w, https://mintcdn.com/onesignal/Z6xkXGfmy814If53/images/docs/daee83f7f444a1361390186abfd493252ae59b8ffbdb42f4a14fd979f2f9e268-Screenshot_2025-04-07_at_1.35.46_PM.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Z6xkXGfmy814If53\u0026q=85\u0026s=bd1884d3ea8e1601c1b9994a71ae53aa 1100w, https://mintcdn.com/onesignal/Z6xkXGfmy814If53/images/docs/daee83f7f444a1361390186abfd493252ae59b8ffbdb42f4a14fd979f2f9e268-Screenshot_2025-04-07_at_1.35.46_PM.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Z6xkXGfmy814If53\u0026q=85\u0026s=3ac871dbcc633ee205c1be9e700e4066 1650w, https://mintcdn.com/onesignal/Z6xkXGfmy814If53/images/docs/daee83f7f444a1361390186abfd493252ae59b8ffbdb42f4a14fd979f2f9e268-Screenshot_2025-04-07_at_1.35.46_PM.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Z6xkXGfmy814If53\u0026q=85\u0026s=66b87d76c4436c73c16906b2e3d09202 2500w`})})}),_jsxs(Step,{title:`导航至消息 > 推送 > 新消息 > 新推送,在推送创建表单中添加消息。`,children:[_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/docs/cn/push`,children:`Push`}),` for more details if needed.`]}),_jsx(Frame,{caption:`创建新的推送发送到您的测试订阅。`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/3zq1PvSaqvUE2bIx/images/docs/2b9d9a6022f8c8566fe9ab63dde56ef8a6dc5bca9e4a1902c5b939748eea696a-Screenshot_2025-04-07_at_1.39.55_PM.png?fit=max\u0026auto=format\u0026n=3zq1PvSaqvUE2bIx\u0026q=85\u0026s=c153b7d978104a1639d5b2269871c7ce`,\"data-og-width\":`2268`,width:`2268`,\"data-og-height\":`1320`,height:`1320`,\"data-path\":`images/docs/2b9d9a6022f8c8566fe9ab63dde56ef8a6dc5bca9e4a1902c5b939748eea696a-Screenshot_2025-04-07_at_1.39.55_PM.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/3zq1PvSaqvUE2bIx/images/docs/2b9d9a6022f8c8566fe9ab63dde56ef8a6dc5bca9e4a1902c5b939748eea696a-Screenshot_2025-04-07_at_1.39.55_PM.png?w=280\u0026fit=max\u0026auto=format\u0026n=3zq1PvSaqvUE2bIx\u0026q=85\u0026s=8d2bdeba93558463d77869af6a95277c 280w, https://mintcdn.com/onesignal/3zq1PvSaqvUE2bIx/images/docs/2b9d9a6022f8c8566fe9ab63dde56ef8a6dc5bca9e4a1902c5b939748eea696a-Screenshot_2025-04-07_at_1.39.55_PM.png?w=560\u0026fit=max\u0026auto=format\u0026n=3zq1PvSaqvUE2bIx\u0026q=85\u0026s=23de451d4975e98507218ee71962ab3f 560w, https://mintcdn.com/onesignal/3zq1PvSaqvUE2bIx/images/docs/2b9d9a6022f8c8566fe9ab63dde56ef8a6dc5bca9e4a1902c5b939748eea696a-Screenshot_2025-04-07_at_1.39.55_PM.png?w=840\u0026fit=max\u0026auto=format\u0026n=3zq1PvSaqvUE2bIx\u0026q=85\u0026s=4eb58f2f3c04fff962baf8ac093ca5d1 840w, https://mintcdn.com/onesignal/3zq1PvSaqvUE2bIx/images/docs/2b9d9a6022f8c8566fe9ab63dde56ef8a6dc5bca9e4a1902c5b939748eea696a-Screenshot_2025-04-07_at_1.39.55_PM.png?w=1100\u0026fit=max\u0026auto=format\u0026n=3zq1PvSaqvUE2bIx\u0026q=85\u0026s=7825227a8ef2f9800842642313d7cc2b 1100w, https://mintcdn.com/onesignal/3zq1PvSaqvUE2bIx/images/docs/2b9d9a6022f8c8566fe9ab63dde56ef8a6dc5bca9e4a1902c5b939748eea696a-Screenshot_2025-04-07_at_1.39.55_PM.png?w=1650\u0026fit=max\u0026auto=format\u0026n=3zq1PvSaqvUE2bIx\u0026q=85\u0026s=3fd61dcba95d2ec1fb03c12002a05d15 1650w, https://mintcdn.com/onesignal/3zq1PvSaqvUE2bIx/images/docs/2b9d9a6022f8c8566fe9ab63dde56ef8a6dc5bca9e4a1902c5b939748eea696a-Screenshot_2025-04-07_at_1.39.55_PM.png?w=2500\u0026fit=max\u0026auto=format\u0026n=3zq1PvSaqvUE2bIx\u0026q=85\u0026s=1f6270510ce8581ee6a97d85ad19326c 2500w`})})]}),_jsx(Step,{title:`选择\"测试和预览\",找到并勾选您的测试订阅,然后点击\"发送测试推送\"。`,children:_jsx(Frame,{caption:`给自己发送测试推送。`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/jBdBk5XvQR5eKOks/images/docs/7829f46df767772414b32b05edb166a59b3d853b054263057dbb3042c1f13606-Screenshot_2025-04-07_at_1.41.19_PM.png?fit=max\u0026auto=format\u0026n=jBdBk5XvQR5eKOks\u0026q=85\u0026s=b6efff85cdd63ce7b1ebfd41394d8f49`,\"data-og-width\":`2268`,width:`2268`,\"data-og-height\":`1320`,height:`1320`,\"data-path\":`images/docs/7829f46df767772414b32b05edb166a59b3d853b054263057dbb3042c1f13606-Screenshot_2025-04-07_at_1.41.19_PM.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/jBdBk5XvQR5eKOks/images/docs/7829f46df767772414b32b05edb166a59b3d853b054263057dbb3042c1f13606-Screenshot_2025-04-07_at_1.41.19_PM.png?w=280\u0026fit=max\u0026auto=format\u0026n=jBdBk5XvQR5eKOks\u0026q=85\u0026s=a83fb9b98e1088b3a5b9d9df50a75688 280w, https://mintcdn.com/onesignal/jBdBk5XvQR5eKOks/images/docs/7829f46df767772414b32b05edb166a59b3d853b054263057dbb3042c1f13606-Screenshot_2025-04-07_at_1.41.19_PM.png?w=560\u0026fit=max\u0026auto=format\u0026n=jBdBk5XvQR5eKOks\u0026q=85\u0026s=c7f0791bfe5659af3e808a9e083f5479 560w, https://mintcdn.com/onesignal/jBdBk5XvQR5eKOks/images/docs/7829f46df767772414b32b05edb166a59b3d853b054263057dbb3042c1f13606-Screenshot_2025-04-07_at_1.41.19_PM.png?w=840\u0026fit=max\u0026auto=format\u0026n=jBdBk5XvQR5eKOks\u0026q=85\u0026s=d774026582c04c3dece752b939a719d6 840w, https://mintcdn.com/onesignal/jBdBk5XvQR5eKOks/images/docs/7829f46df767772414b32b05edb166a59b3d853b054263057dbb3042c1f13606-Screenshot_2025-04-07_at_1.41.19_PM.png?w=1100\u0026fit=max\u0026auto=format\u0026n=jBdBk5XvQR5eKOks\u0026q=85\u0026s=8a9cb23e3b609bf52d51a9af86ef7807 1100w, https://mintcdn.com/onesignal/jBdBk5XvQR5eKOks/images/docs/7829f46df767772414b32b05edb166a59b3d853b054263057dbb3042c1f13606-Screenshot_2025-04-07_at_1.41.19_PM.png?w=1650\u0026fit=max\u0026auto=format\u0026n=jBdBk5XvQR5eKOks\u0026q=85\u0026s=ca2995e69055151c4ce6704bc158a7d4 1650w, https://mintcdn.com/onesignal/jBdBk5XvQR5eKOks/images/docs/7829f46df767772414b32b05edb166a59b3d853b054263057dbb3042c1f13606-Screenshot_2025-04-07_at_1.41.19_PM.png?w=2500\u0026fit=max\u0026auto=format\u0026n=jBdBk5XvQR5eKOks\u0026q=85\u0026s=ba3c61c2ccb4d5b201353486f0832b8c 2500w`})})}),_jsxs(Step,{title:`您应该收到测试的推送。`,children:[_jsxs(_components.p,{children:[`If you did not receive a push, see `,_jsx(_components.a,{href:`/docs/cn/notifications-not-shown-web-push`,children:`Web push: Notifications not shown`}),` for further debugging.`]}),_jsx(Frame,{caption:`已接收测试推送。`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/onesignal/0qspEXXeJ8zJbkJ-/images/docs/81a55eefc69a1cc6e4aba2bc240e780bb8cb5bdcafac2891862e3c11f1d45591-Screenshot_2025-04-07_at_1.43.07_PM.png?fit=max\u0026auto=format\u0026n=0qspEXXeJ8zJbkJ-\u0026q=85\u0026s=c779697abc1576141e9a542bec927be2`,\"data-og-width\":`740`,width:`740`,\"data-og-height\":`198`,height:`198`,\"data-path\":`images/docs/81a55eefc69a1cc6e4aba2bc240e780bb8cb5bdcafac2891862e3c11f1d45591-Screenshot_2025-04-07_at_1.43.07_PM.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/onesignal/0qspEXXeJ8zJbkJ-/images/docs/81a55eefc69a1cc6e4aba2bc240e780bb8cb5bdcafac2891862e3c11f1d45591-Screenshot_2025-04-07_at_1.43.07_PM.png?w=280\u0026fit=max\u0026auto=format\u0026n=0qspEXXeJ8zJbkJ-\u0026q=85\u0026s=d11dfa8d0a5a18e00592d1641165265e 280w, https://mintcdn.com/onesignal/0qspEXXeJ8zJbkJ-/images/docs/81a55eefc69a1cc6e4aba2bc240e780bb8cb5bdcafac2891862e3c11f1d45591-Screenshot_2025-04-07_at_1.43.07_PM.png?w=560\u0026fit=max\u0026auto=format\u0026n=0qspEXXeJ8zJbkJ-\u0026q=85\u0026s=79eff79b7440412698f47fc146c31025 560w, https://mintcdn.com/onesignal/0qspEXXeJ8zJbkJ-/images/docs/81a55eefc69a1cc6e4aba2bc240e780bb8cb5bdcafac2891862e3c11f1d45591-Screenshot_2025-04-07_at_1.43.07_PM.png?w=840\u0026fit=max\u0026auto=format\u0026n=0qspEXXeJ8zJbkJ-\u0026q=85\u0026s=6e476aa26af444b01cc5fff9ba3765e1 840w, https://mintcdn.com/onesignal/0qspEXXeJ8zJbkJ-/images/docs/81a55eefc69a1cc6e4aba2bc240e780bb8cb5bdcafac2891862e3c11f1d45591-Screenshot_2025-04-07_at_1.43.07_PM.png?w=1100\u0026fit=max\u0026auto=format\u0026n=0qspEXXeJ8zJbkJ-\u0026q=85\u0026s=8bb4a9dbfa848209d24d154acd50cd35 1100w, https://mintcdn.com/onesignal/0qspEXXeJ8zJbkJ-/images/docs/81a55eefc69a1cc6e4aba2bc240e780bb8cb5bdcafac2891862e3c11f1d45591-Screenshot_2025-04-07_at_1.43.07_PM.png?w=1650\u0026fit=max\u0026auto=format\u0026n=0qspEXXeJ8zJbkJ-\u0026q=85\u0026s=ac36925a1db940832ede0e55a20f29f9 1650w, https://mintcdn.com/onesignal/0qspEXXeJ8zJbkJ-/images/docs/81a55eefc69a1cc6e4aba2bc240e780bb8cb5bdcafac2891862e3c11f1d45591-Screenshot_2025-04-07_at_1.43.07_PM.png?w=2500\u0026fit=max\u0026auto=format\u0026n=0qspEXXeJ8zJbkJ-\u0026q=85\u0026s=6b7d97a6b3186bb90f156479a9cb7f21 2500w`})})]})]}),`\n`,_jsxs(Check,{children:[_jsx(_components.p,{children:`You have successfully setup web push with OneSignal. Next steps:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/docs/cn/web-push-setup`,children:`Web push setup`}),` - additional non-developer web setup steps.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/docs/cn/web-sdk-setup`,children:`Web SDK setup`}),` - developer web SDK setup steps.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/docs/cn/troubleshooting-web-push`,children:`Web SDK troubleshooting`}),` - troubleshooting if you see errors in the console or not getting a subscription ID.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/docs/cn/notifications-not-shown-web-push`,children:`Web push: Notifications not shown`}),` - troubleshooting notifications not displaying on your device.`]}),`\n`]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`在浏览器关闭时接收通知`,children:`在浏览器关闭时接收通知`}),`\n`,_jsx(_components.p,{children:`浏览器在不同平台上的行为不同。请参阅下表了解在浏览器关闭时仍可接收通知的支持情况。`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Browser Name`}),_jsx(_components.th,{children:`Android`}),_jsx(_components.th,{children:`Windows`}),_jsx(_components.th,{children:`macOS`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Chrome / Chromium`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Firefox`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Safari`}),_jsx(_components.td,{children:`N/A`}),_jsx(_components.td,{children:`N/A`}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Opera`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Edge`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`No`})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Chrome`}),` - Chrome runs as a background process by default even when all the windows are closed. As long as the background process is running, notifications will still be received. If the Chrome background process is not running, notifications will not be received.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Firefox`}),` - On Mac OS X, the process still exists even if windows are closed, and a notification can be received if all windows are closed (as long as there is still a dot in the dock showing Firefox is still running). On Windows, the process exits after all windows are closed so notifications cannot be received unless a Firefox window is still open.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Safari`}),` - Safari does not have to be running to receive notifications, as they are sent directly to the operating system. The user still has to sign up for Safari web notifications, but after that they will be received even when Safari is completely closed.`]}),`\n`,_jsx(_components.p,{children:`订阅者最多有 3 天时间来检索最后一个已知的缺失通知,之后消息将永久过期。`}),`\n`,_jsx(_components.p,{children:`For example, suppose a subscriber was supposed to receive a Firefox web push notification, but Firefox was closed. If the subscriber opens Firefox within 3 days, the subscriber will receive only the last known web push notification that didn’t expire. If the subscriber opens Firefox after 3 days, the web push notification sent more than 3 days ago will not be received.`}),`\n`,_jsx(_components.hr,{})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Web 推送浏览器行为","description":"了解如何取消订阅通知并理解浏览器如何处理 Web 推送订阅。","keywords":["web 推送取消订阅","onesignal web 推送","浏览器通知设置","推送通知权限","重置推送权限","取消订阅通知","测试推送通知","onesignal 铃当提示","清除站点数据通知","浏览器推送行为"],"href":"/docs/cn/browser-behavior-and-unsubscribes"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"理解推送权限","slug":"理解推送权限","depth":2,"children":[]},{"title":"如何取消订阅 Web 通知","slug":"如何取消订阅-web-通知","depth":2,"children":[{"title":"在浏览器设置中取消订阅","slug":"在浏览器设置中取消订阅","depth":3,"children":[]},{"title":"在网站上取消订阅","slug":"在网站上取消订阅","depth":3,"children":[]},{"title":"删除浏览器数据、清除 Cookie 和站点数据","slug":"删除浏览器数据、清除-cookie-和站点数据","depth":3,"children":[]}]},{"title":"如何测试您的权限提示","slug":"如何测试您的权限提示","depth":2,"children":[{"title":"在浏览器关闭时接收通知","slug":"在浏览器关闭时接收通知","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/onesignal/e069c1b9f3157e14/hotjar-koala.js","/_mintlify/custom/onesignal/3e5d03885ab32f49/intercom.js","/_mintlify/custom/onesignal/dbb7af4794d1b586/munchkin-marketo.js"],"subdomain":"onesignal","siteName":"OneSignal Documentation","title":"Web 推送浏览器行为 - OneSignal Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/docs/en/browser-behavior-and-unsubscribes","matchLevel":1},"cn":{"href":"/docs/cn/browser-behavior-and-unsubscribes","matchLevel":0},"ko":{"href":"/docs/ko/browser-behavior-and-unsubscribes","matchLevel":1},"ja":{"href":"/docs/ja/browser-behavior-and-unsubscribes","matchLevel":1},"tr":{"href":"/docs/tr/browser-behavior-and-unsubscribes","matchLevel":1},"pt-BR":{"href":"/docs/pt-BR/browser-behavior-and-unsubscribes","matchLevel":1},"es":{"href":"/docs/es/browser-behavior-and-unsubscribes","matchLevel":1},"fr":{"href":"/docs/fr/browser-behavior-and-unsubscribes","matchLevel":1}}},"lastModified":"2026-01-28T10:01:55.455Z","originalFileLocation":"docs/cn/browser-behavior-and-unsubscribes.mdx","locale":"cn"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"了解如何取消订阅通知并理解浏览器如何处理 Web 推送订阅。\">\u003cmeta data-mint-head name=\"application-name\" content=\"OneSignal Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Web 推送浏览器行为 - OneSignal Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"了解如何取消订阅通知并理解浏览器如何处理 Web 推送订阅。\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OneSignal Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://documentation.onesignal.com/docs/cn/browser-behavior-and-unsubscribes\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://onesignal.mintlify.site/_mintlify/api/og/v2?division=%E7%BD%91%E7%BB%9C%E6%8E%A8%E9%80%81%E9%80%9A%E7%9F%A5\u0026amp;title=Web+%E6%8E%A8%E9%80%81%E6%B5%8F%E8%A7%88%E5%99%A8%E8%A1%8C%E4%B8%BA\u0026amp;description=%E4%BA%86%E8%A7%A3%E5%A6%82%E4%BD%95%E5%8F%96%E6%B6%88%E8%AE%A2%E9%98%85%E9%80%9A%E7%9F%A5%E5%B9%B6%E7%90%86%E8%A7%A3%E6%B5%8F%E8%A7%88%E5%99%A8%E5%A6%82%E4%BD%95%E5%A4%84%E7%90%86+Web+%E6%8E%A8%E9%80%81%E8%AE%A2%E9%98%85%E3%80%82\u0026amp;theme=12e705baa88dc8cc6d7a9877\u0026amp;signature=4c658663ba354589b95e67fd802bb7e7ef38932f405a552e768fc2fe2675f0cb\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Web 推送浏览器行为 - OneSignal Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"了解如何取消订阅通知并理解浏览器如何处理 Web 推送订阅。\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://onesignal.mintlify.site/_mintlify/api/og/v2?division=%E7%BD%91%E7%BB%9C%E6%8E%A8%E9%80%81%E9%80%9A%E7%9F%A5\u0026amp;title=Web+%E6%8E%A8%E9%80%81%E6%B5%8F%E8%A7%88%E5%99%A8%E8%A1%8C%E4%B8%BA\u0026amp;description=%E4%BA%86%E8%A7%A3%E5%A6%82%E4%BD%95%E5%8F%96%E6%B6%88%E8%AE%A2%E9%98%85%E9%80%9A%E7%9F%A5%E5%B9%B6%E7%90%86%E8%A7%A3%E6%B5%8F%E8%A7%88%E5%99%A8%E5%A6%82%E4%BD%95%E5%A4%84%E7%90%86+Web+%E6%8E%A8%E9%80%81%E8%AE%A2%E9%98%85%E3%80%82\u0026amp;theme=12e705baa88dc8cc6d7a9877\u0026amp;signature=4c658663ba354589b95e67fd802bb7e7ef38932f405a552e768fc2fe2675f0cb\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/onesignal/eCiRydtW5fLfLRWp/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OneSignal Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3A3DB3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://documentation.onesignal.com/docs/cn/browser-behavior-and-unsubscribes\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/cn/browser-behavior-and-unsubscribes.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://documentation.onesignal.com/docs/cn/browser-behavior-and-unsubscribes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://documentation.onesignal.com/docs/en/browser-behavior-and-unsubscribes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://documentation.onesignal.com/docs/ko/browser-behavior-and-unsubscribes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://documentation.onesignal.com/docs/ja/browser-behavior-and-unsubscribes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"tr\" href=\"https://documentation.onesignal.com/docs/tr/browser-behavior-and-unsubscribes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://documentation.onesignal.com/docs/pt-BR/browser-behavior-and-unsubscribes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://documentation.onesignal.com/docs/es/browser-behavior-and-unsubscribes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://documentation.onesignal.com/docs/fr/browser-behavior-and-unsubscribes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://documentation.onesignal.com/docs/en/browser-behavior-and-unsubscribes\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://documentation.onesignal.com/#organization\",\"name\":\"OneSignal Documentation\",\"url\":\"https://documentation.onesignal.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/onesignal/yJcueeDCO7UpHnnY/logo/OneSignal-Logo.svg?fit=max\u0026auto=format\u0026n=yJcueeDCO7UpHnnY\u0026q=85\u0026s=1fcfb6fef6d820fd9d99c74850711107\"}},{\"@type\":\"WebSite\",\"@id\":\"https://documentation.onesignal.com#website\",\"name\":\"OneSignal Documentation\",\"url\":\"https://documentation.onesignal.com\",\"publisher\":{\"@id\":\"https://documentation.onesignal.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://documentation.onesignal.com/docs/cn/browser-behavior-and-unsubscribes#webpage\",\"url\":\"https://documentation.onesignal.com/docs/cn/browser-behavior-and-unsubscribes\",\"name\":\"Web 推送浏览器行为\",\"description\":\"了解如何取消订阅通知并理解浏览器如何处理 Web 推送订阅。\",\"dateModified\":\"2026-01-28T10:01:55.455Z\",\"isPartOf\":{\"@id\":\"https://documentation.onesignal.com#website\"},\"breadcrumb\":{\"@id\":\"https://documentation.onesignal.com/docs/cn/browser-behavior-and-unsubscribes#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://documentation.onesignal.com/docs/cn/browser-behavior-and-unsubscribes#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"消息渠道\",\"item\":\"https://documentation.onesignal.com/docs/cn/channel-setup\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"推送通知\",\"item\":\"https://documentation.onesignal.com/docs/cn/push\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"网络推送通知\",\"item\":\"https://documentation.onesignal.com/docs/cn/web-push-setup\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Web 推送浏览器行为\",\"item\":\"https://documentation.onesignal.com/docs/cn/browser-behavior-and-unsubscribes\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://documentation.onesignal.com/docs/cn/browser-behavior-and-unsubscribes#article\",\"headline\":\"Web 推送浏览器行为\",\"name\":\"Web 推送浏览器行为\",\"description\":\"了解如何取消订阅通知并理解浏览器如何处理 Web 推送订阅。\",\"url\":\"https://documentation.onesignal.com/docs/cn/browser-behavior-and-unsubscribes\",\"mainEntityOfPage\":{\"@id\":\"https://documentation.onesignal.com/docs/cn/browser-behavior-and-unsubscribes#webpage\"},\"dateModified\":\"2026-01-28T10:01:55.455Z\",\"keywords\":\"web 推送取消订阅, onesignal web 推送, 浏览器通知设置, 推送通知权限, 重置推送权限, 取消订阅通知, 测试推送通知, onesignal 铃当提示, 清除站点数据通知, 浏览器推送行为\",\"publisher\":{\"@id\":\"https://documentation.onesignal.com/#organization\"},\"isPartOf\":{\"@id\":\"https://documentation.onesignal.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OneSignal Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"OneSignal Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/cn/browser-behavior-and-unsubscribes.md","siteName":"OneSignal Documentation","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/docs/en/browser-behavior-and-unsubscribes"}]},{"language":"cn","tabs":[{"tab":"主页","pages":[{"title":"主页","href":"/docs/cn/home"}]},{"tab":"用户指南","groups":[{"group":"开始使用和设置","pages":[{"title":"快速入门指南","href":"/docs/cn/quickstart-guide"},{"group":"OneSignal 仪表板","pages":[{"title":"应用、组织和账户","href":"/docs/cn/apps-organizations"},{"title":"团队成员","href":"/docs/cn/manage-team-members"},{"title":"密钥和 ID","href":"/docs/cn/keys-and-ids"},{"title":"审计日志","href":"/docs/cn/audit-logs"},{"title":"使用量与计费","href":"/docs/cn/billing-faq"},{"title":"已禁用的应用和组织","href":"/docs/cn/disabled-apps"}]},{"title":"迁移到 OneSignal","href":"/docs/cn/migrating-to-onesignal"}]},{"group":"消息渠道","pages":[{"title":"渠道设置","href":"/docs/cn/channel-setup"},{"group":"推送通知","pages":[{"title":"推送概览","href":"/docs/cn/push"},{"group":"移动推送通知","pages":[{"title":"移动推送设置","href":"/docs/cn/mobile-push-setup"},{"title":"提示推送权限","href":"/docs/cn/prompt-for-push-permissions"},{"title":"iOS 临时推送通知","href":"/docs/cn/ios-provisional-push-notifications"},{"title":"Android 通知类别","href":"/docs/cn/android-notification-categories"},{"title":"数据和后台通知","href":"/docs/cn/data-notifications"},{"title":"VoIP 推送通知","href":"/docs/cn/voip-notifications"}]},{"group":"网络推送通知","pages":[{"title":"网页推送设置","href":"/docs/cn/web-push-setup"},{"title":"网页权限提示","href":"/docs/cn/permission-requests"},{"title":"网页推送常见问题","description":"OneSignal 网页推送通知设置、要求、浏览器兼容性、域名更改以及为开发者和网站所有者排查常见问题的完整指南。","href":"/docs/cn/web-push-setup-faq"},{"title":"Web 推送浏览器行为","href":"/docs/cn/browser-behavior-and-unsubscribes"},{"title":"Shopify 网页推送集成","description":"通过 Vendo 集成将 Shopify 店铺连接到 OneSignal:无需手动编辑主题代码即可一键部署 Web 推送 SDK,将客户标签、客户端浏览事件和服务端商务事件同步到 OneSignal,并基于真实购买行为构建细分受众、触发废弃购物车提醒等推送营销活动。","href":"/docs/cn/shopify"},{"title":"用于网页推送的 OneSignal WordPress 插件设置","href":"/docs/cn/wordpress"},{"title":"WordPress 故障排除","href":"/docs/cn/troubleshooting-wordpress-web-push"}]},{"group":"推送通知功能","pages":[{"title":"通知图标","href":"/docs/cn/notification-icons"},{"title":"通知图像和富媒体","href":"/docs/cn/rich-media"},{"title":"通知声音","href":"/docs/cn/notification-sounds"},{"title":"通知徽章","href":"/docs/cn/badges"},{"title":"推送通知操作按钮","href":"/docs/cn/action-buttons"},{"title":"推送频率限制","href":"/docs/cn/frequency-capping"},{"title":"推送限流","href":"/docs/cn/throttling"},{"title":"iOS:专注模式和中断级别","href":"/docs/cn/ios-focus-modes-and-interruption-levels"},{"title":"iOS:相关性评分","href":"/docs/cn/ios-relevance-score"}]},{"group":"推送通知分析和故障排除","pages":[{"title":"推送消息报告","href":"/docs/cn/push-notification-message-reports"},{"title":"确认送达","href":"/docs/cn/confirmed-delivery"},{"title":"通知点击率","href":"/docs/cn/notification-ctr"},{"title":"移动推送:通知未显示或延迟","href":"/docs/cn/notifications-show-successful-but-are-not-being-shown"},{"title":"网页推送:通知未显示","href":"/docs/cn/notifications-not-shown-web-push"},{"title":"通知图片未显示","href":"/docs/cn/notification-images-not-showing"},{"title":"重复通知","href":"/docs/cn/duplicated-notifications"},{"title":"FCM 过期令牌常见问题","href":"/docs/cn/fcm-expired-token-faq"}]}]},{"group":"应用内消息","pages":[{"title":"应用内消息概览","href":"/docs/cn/in-app-messages-setup"},{"title":"应用内触发器","href":"/docs/cn/iam-triggers"},{"title":"应用内点击操作","href":"/docs/cn/iam-click-actions"},{"group":"应用内消息设计","pages":[{"title":"使用拖放设计应用内消息","href":"/docs/cn/design-your-in-app-message"},{"title":"使用 HTML 设计应用内消息","href":"/docs/cn/design-your-in-app-message-with-html"},{"title":"应用内消息模板与快速入门","href":"/docs/cn/in-app-html-templates"},{"title":"应用内消息 JavaScript API 参考","href":"/docs/cn/in-app-message-api"}]},{"title":"应用内消息报告","href":"/docs/cn/in-app-message-reports"},{"title":"应用内消息故障排除","href":"/docs/cn/in-app-message-troubleshooting"}]},{"group":"电子邮件","pages":[{"title":"邮件概述","href":"/docs/cn/email-messaging"},{"group":"电子邮件设置","pages":[{"title":"邮件设置","href":"/docs/cn/email-setup"},{"title":"邮件 DNS 配置","href":"/docs/cn/email-dns-configuration"},{"title":"发送者","href":"/docs/cn/senders"},{"title":"事务性电子邮件","href":"/docs/cn/setup-transactional-emails"},{"title":"创建自定义偏好或取消订阅页面","href":"/docs/cn/create-custom-unsubscribe-page"}]},{"group":"电子邮件可投递性","pages":[{"title":"邮件消息报告","href":"/docs/cn/email-message-reports"},{"title":"邮件可交付性","href":"/docs/cn/email-deliverability"},{"title":"邮件声誉最佳实践","href":"/docs/cn/email-reputation-best-practices"},{"title":"邮件地址验证","href":"/docs/cn/email-address-validation"},{"title":"邮件预热指南","href":"/docs/cn/email-warm-up"},{"title":"Google Postmaster Tools","href":"/docs/cn/google-postmaster-tools"},{"title":"抑制列表","href":"/docs/cn/suppressions"},{"title":"邮件故障排除","href":"/docs/cn/email-troubleshooting"}]},{"group":"电子邮件消息","pages":[{"title":"使用拖放功能设计邮件","href":"/docs/cn/design-emails-with-drag-and-drop"},{"title":"使用 HTML 设计电子邮件","href":"/docs/cn/design-emails-with-html"},{"title":"邮件取消订阅链接和标头","href":"/docs/cn/unsubscribe-links-email-subscriptions"},{"title":"邮件模板转发","href":"/docs/cn/email-template-forwarding"}]}]},{"group":"短信和RCS","pages":[{"title":"SMS、MMS 和 RCS 概览","href":"/docs/cn/sms-messaging"},{"title":"富媒体通信服务 (RCS)","href":"/docs/cn/rcs-messaging"},{"group":"短信设置","pages":[{"title":"SMS 设置","href":"/docs/cn/sms-setup"},{"title":"发送方资源申请与各国要求","sidebarTitle":"发送方资源申请","href":"/docs/cn/sms-registration-requirements"},{"title":"SMS 选择加入和收集","href":"/docs/cn/sms-opt-in-and-collection"},{"title":"SMS 同意关键词管理","href":"/docs/cn/sms-consent-keyword-management"},{"title":"SMS 关键词","href":"/docs/cn/keywords"}]},{"group":"短信消息","pages":[{"title":"SMS 消息报告","href":"/docs/cn/sms-message-reports"},{"title":"一次性密码(OTP)","sidebarTitle":"一次性密码","href":"/docs/cn/sms-verify"}]}]},{"group":"实时活动","pages":[{"title":"Live Activities","href":"/docs/cn/live-activities"},{"title":"Live Activities 分析","href":"/docs/cn/live-activities-analytics"}]},{"group":"功能","pages":[{"title":"A/B 测试","href":"/docs/cn/ab-testing"},{"title":"多语言消息传递","href":"/docs/cn/multi-language-messaging"},{"group":"消息个性化","pages":[{"title":"个性化","href":"/docs/cn/message-personalization"},{"title":"使用 Liquid 语法","href":"/docs/cn/using-liquid-syntax"},{"title":"数据源","href":"/docs/cn/data-feeds"},{"title":"使用 Custom Events 进行个性化","href":"/docs/cn/personalization-custom-event"},{"title":"使用属性进行个性化","href":"/docs/cn/personalization-properties-and-tags"},{"title":"使用 API custom_data 个性化消息","href":"/docs/cn/personalization-api-custom-data"},{"title":"使用 CSV 的动态内容","href":"/docs/cn/dynamic-content"}]},{"group":"URL、链接和深层链接","pages":[{"title":"URL、链接和深度链接","href":"/docs/cn/links"},{"title":"深度链接","href":"/docs/cn/deep-linking"},{"title":"邮件取消订阅链接和标头","href":"/docs/cn/unsubscribe-links-email-subscriptions"}]},{"title":"重定向消息","href":"/docs/cn/retargeting"},{"title":"模板","href":"/docs/cn/templates"},{"title":"标签","href":"/docs/cn/labels"}]}]},{"group":"旅程","pages":[{"title":"旅程概述","href":"/docs/cn/journeys-overview"},{"group":"旅程功能","pages":[{"title":"Journey 设置","href":"/docs/cn/journeys-settings"},{"title":"旅程消息","href":"/docs/cn/journeys-messages"},{"title":"旅程操作","href":"/docs/cn/journeys-actions"},{"title":"旅程 Webhook","href":"/docs/cn/journeys-webhook"},{"title":"通过 Journey Webhook 发送 WhatsApp 消息","href":"/docs/cn/sending-whatsapp-messages-via-journey-webhooks"},{"title":"管理 Journey","href":"/docs/cn/managing-journeys"},{"title":"旅程分析","href":"/docs/cn/journeys-analytics"}]},{"title":"旅程示例","href":"/docs/cn/journeys-examples"}]},{"group":"受众和自定义事件","pages":[{"title":"细分","href":"/docs/cn/segmentation"},{"group":"用户 \u0026 订阅","pages":[{"title":"用户","href":"/docs/cn/users"},{"title":"订阅","href":"/docs/cn/subscriptions"},{"title":"别名","href":"/docs/cn/aliases"},{"title":"测试用户","href":"/docs/cn/test-users"},{"title":"删除用户","href":"/docs/cn/delete-users"}]},{"group":"自定义事件","pages":[{"title":"自定义事件","href":"/docs/cn/custom-events"},{"title":"自定义事件存储和保留","href":"/docs/cn/custom-event-storage"}]},{"group":"标签","pages":[{"title":"标签","href":"/docs/cn/add-user-data-tags"},{"title":"标签:时间操作符","href":"/docs/cn/time-operators"}]},{"title":"导入","href":"/docs/cn/import"}]},{"group":"分析和集成","pages":[{"group":"分析","pages":[{"title":"分析概述","href":"/docs/cn/analytics-overview"},{"title":"目标","sidebarTitle":"目标","href":"/docs/cn/goals"},{"title":"模板分析","href":"/docs/cn/template-analytics"},{"title":"导出数据","href":"/docs/cn/exporting-data"},{"title":"自定义结果","href":"/docs/cn/custom-outcomes"},{"title":"转化指标","href":"/docs/cn/conversion-metrics"},{"title":"参与度趋势","href":"/docs/cn/engagement-analytics"},{"title":"订阅趋势","href":"/docs/cn/subscription-trends"},{"group":"留存指标","pages":[{"title":"留存指标","href":"/docs/cn/retention-metrics"},{"title":"解读留存曲线","href":"/docs/cn/interpreting-retention-curves"}]},{"title":"指标术语表","href":"/docs/cn/analytics-metrics-glossary"}]},{"group":"事件流","pages":[{"title":"事件流","href":"/docs/cn/event-streams"},{"title":"Event Stream 数据参考","sidebarTitle":"Event Stream 数据","href":"/docs/cn/event-streams-data"},{"title":"应用内消息事件流","href":"/docs/cn/iam-event-streams"},{"title":"Google Sheets 与事件流集成","href":"/docs/cn/google-sheets-integration-with-event-streams"}]},{"group":"集成","pages":[{"title":"集成概览","href":"/docs/cn/integrations"},{"title":"数据仓库、DMP 和 CRM 集成","href":"/docs/cn/database-dmp-crm-integration"},{"group":"OneSignal 作为数据源","pages":[{"title":"Amplitude","href":"/docs/cn/amplitude"},{"title":"Databricks","href":"/docs/cn/databricks"},{"title":"Google BigQuery","href":"/docs/cn/bigquery"},{"title":"Mixpanel","href":"/docs/cn/mixpanel"},{"title":"Snowflake","href":"/docs/cn/snowflake"},{"title":"Segment (Twilio)","href":"/docs/cn/segment-onesignal-integration"}]},{"group":"OneSignal 作为目的地","pages":[{"title":"Adobe Audience Manager","href":"/docs/cn/adobe-audience-manager"},{"title":"AlloyDB","href":"/docs/cn/alloydb"},{"title":"Amazon Athena","href":"/docs/cn/amazon-athena"},{"title":"Amazon S3","href":"/docs/cn/s3"},{"title":"Amplitude","href":"/docs/cn/amplitude"},{"title":"Apache Kafka","href":"/docs/cn/kafka"},{"title":"Amazon Redshift","href":"/docs/cn/amazon-redshift"},{"title":"Azure Synapse","href":"/docs/cn/azure-synapse"},{"title":"ClickHouse","href":"/docs/cn/clickhouse"},{"title":"Confluent Cloud","href":"/docs/cn/confluent-cloud"},{"title":"Databricks","href":"/docs/cn/databricks"},{"title":"Elasticsearch","href":"/docs/cn/elasticsearch"},{"title":"Google BigQuery","href":"/docs/cn/bigquery"},{"title":"Google Cloud SQL","href":"/docs/cn/google-cloud-sql"},{"title":"Google Sheets","href":"/docs/cn/google-sheets"},{"title":"Greenplum","href":"/docs/cn/greenplum"},{"title":"HubSpot","href":"/docs/cn/hubspot"},{"title":"Materialize","href":"/docs/cn/materialize"},{"title":"Microsoft Fabric","href":"/docs/cn/microsoft-fabric"},{"title":"Mixpanel","href":"/docs/cn/mixpanel"},{"title":"MotherDuck","href":"/docs/cn/motherduck"},{"title":"MySQL","href":"/docs/cn/mysql"},{"title":"PostgreSQL","href":"/docs/cn/postgresql"},{"title":"Pub/Sub","href":"/docs/cn/google-pubsub"},{"title":"SingleStore","href":"/docs/cn/singlestore"},{"title":"Snowflake","href":"/docs/cn/snowflake"},{"title":"SQL Server","href":"/docs/cn/sql-server"},{"title":"Starburst Enterprise","href":"/docs/cn/starburst-enterprise"},{"title":"Starburst Galaxy","href":"/docs/cn/starburst-galaxy"},{"title":"Trino","href":"/docs/cn/trino"},{"title":"Segment (Twilio)","href":"/docs/cn/segment-onesignal-integration"}]},{"group":"归因","pages":[{"title":"RevenueCat","href":"/docs/cn/revenuecat"},{"title":"Adjust","href":"/docs/cn/adjust"},{"title":"BlueConic","href":"/docs/cn/blueconic"}]}]}]},{"group":"隐私和安全","pages":[{"group":"安全凭证","pages":[{"title":"SOC 2 Type II","href":"/docs/cn/soc-2-type-ii"},{"title":"ISO 27001","href":"/docs/cn/iso27001"},{"title":"HIPAA","href":"/docs/cn/hipaa"}]},{"group":"数据隐私和合规","pages":[{"title":"GDPR 和个人权利","href":"/docs/cn/gdpr-compliance"},{"title":"欧盟-美国数据隐私框架","href":"/docs/cn/eu-us-data-privacy-framework"},{"title":"邮件法规合规","href":"/docs/cn/email-compliance"},{"title":"SMS 法规合规","href":"/docs/cn/sms-regulatory-compliance"},{"title":"Apple 应用隐私要求","href":"/docs/cn/apple-app-privacy-requirements"},{"title":"Google Play 数据安全要求","href":"/docs/cn/google-play-data-safety-requirements"},{"title":"数据收集和安全常见问题","href":"/docs/cn/data-questions"},{"title":"OneSignal SDK收集的数据","href":"/docs/cn/data-collected-by-the-onesignal-sdk"},{"title":"处理个人数据","href":"/docs/cn/handling-personal-data"}]},{"group":"认证","pages":[{"title":"两步验证","href":"/docs/cn/2-step-authentication"},{"title":"单点登录 (SSO)","href":"/docs/cn/sso"}]}]}]},{"tab":"开发者指南","pages":[{"title":"开发者指南","href":"/docs/cn/developers"}]},{"tab":"教程","pages":[{"title":"教程","href":"/docs/cn/tutorials"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/reference/rest-api-overview"}]},{"tab":"Release Notes","pages":[{"title":"Release Notes","href":"/release-notes/changelog"}]}],"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://onesignal.com/blog"},{"anchor":"GitHub","icon":"github","href":"https://github.com/OneSignal"},{"anchor":"YouTube","icon":"youtube","href":"https://www.youtube.com/@onesignalofficial/playlists"}]}},{"language":"ko","pages":[{"title":"ko","href":"/docs/ko/browser-behavior-and-unsubscribes"}]},{"language":"ja","pages":[{"title":"ja","href":"/docs/ja/browser-behavior-and-unsubscribes"}]},{"language":"tr","pages":[{"title":"tr","href":"/docs/tr/browser-behavior-and-unsubscribes"}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/docs/pt-BR/browser-behavior-and-unsubscribes"}]},{"language":"es","pages":[{"title":"es","href":"/docs/es/browser-behavior-and-unsubscribes"}]},{"language":"fr","pages":[{"title":"fr","href":"/docs/fr/browser-behavior-and-unsubscribes"}]}]},"basePath":"","title":"Web 推送浏览器行为 - OneSignal Documentation","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["07c022d89b","a74be98ba7","a9bb46feb3"],"chunks":["Frame-BXrZabKK.js","DynamicMarkdown-CtasenyM.js","zoom-image-lightbox-C5F0mVLH.js","lightbox-handle-r17bVUz3.js","Markdown-CwLx6PAg.js","clsx-C3kuh_dz.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CmKHfscc.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-U3mI6Ljh.js"]}