Push Notification Test
Test browser notification permissions and delivery.
How to use this page to quickly locate problems
Notify Guide
Request permission, trigger notification, check callback.
Confirm that the environment meets the conditions
Notification capabilities typically require a secure context (HTTPS) and browser support for Notification and Service Workers.
Request notification permission
Click "Request notification permission" and let the browser pop up asking whether to allow notifications.
Trigger in-page notifications and test click callbacks
In-page notifications can verify Notification.onclick/onclose (while the page is alive).
Register a Service Worker and trigger system notifications
SW notification is closer to real push/background notification interaction, click and go notificationclick.
FAQ
Compilation of high-frequency issues regarding notification permissions, on-page notifications and Service Worker notifications.
What is this page mainly used for?
Used to verify browser notification capabilities: including permission status (default/granted/denied), whether the Notification (new Notification) in the page can pop up, and whether the showNotification of the Service Worker can pop up and return click/close events.
Why doesn’t the “Request notification permission” pop-up window pop up?
Common reasons: The current is not a secure context; the browser has remembered previous choices (especially denied); or is blocked by enterprise policy/browser settings. First confirm that the "Security Context" is yes, and go to the site settings to check the notification permissions.
What should I do if the permission is denied?
The page cannot automatically change denied back to granted. Please go to the site settings (or system notification settings) in the browser address bar, change the site notification to "Allow", then refresh the page and try again.
Does iOS Safari support system notifications?
iOS Safari's notification capability support is limited, and it usually requires an "Add to Home Screen" PWA form to use the notification capability; even then, it will be affected by the system version and permissions policy.
Why does triggering the notification fail and prompts that a user gesture is required?
Some browsers restrict non-user gestures from triggering notifications. Please use button clicks on the page to trigger (rather than automatic triggering/scheduled triggering), and make sure the tab is not in the background.
SW notification is not returned to the log after being clicked?
First click "Register Service Worker" and confirm that SW ready is yes, then trigger the SW notification and click. If there is still no response, check whether there is `/notification-sw.js`, whether the background notification is intercepted by the browser, and whether there are Service Worker related errors in the console.
Why can I trigger notifications but the system doesn't show them?
It may be intercepted by the system's "Do Not Disturb Mode/Focus Mode", the system notification master switch, and the browser's own notification switch; it may also be affected by site silence or aggregation policies. It is recommended to check the system notification center and browser site permissions.