Learn how to unsubscribe from notifications and understand how browsers handle web push subscriptions.
Example of the Chrome required system-level permission prompt that you must click 'Allow' on to receive push notifications for this site.
chrome://settings/content/notifications
(Learn more on Chrome’s docs)edge://settings/content/notifications
(Learn more on Microsoft’s docs)about:preferences#privacy
scroll to Permissions > Notifications > Settings (Learn more on Mozilla’s docs)Example shows Chrome browser where you can toggle of push permissions for the site completely or reset permissions which will allow the site to prompt you again.
Example shows the OneSignal Bell Prompt.
Example shows clearing browser history and site data.
Example shows clearing site data.
Visit your site with the OneSignal SDK setup.
Reset push permissions
Chrome site settings menu > Resetting permissions for Notifications.
Delete site data.
Chrome's On-device site data screen.
Example shows clearing your site cookies.
Open your developer tools.
Follow the steps needed to prompt for push notifications and on the required system-level permission prompt, select "Allow".
Example shows the Chrome required system-level prompt.
Check the console for any errors.
Get subscription ID
OneSignal.User.PushSubscription.id
Getting the push subscription ID using the Console.
Viewing the subscription ID in the OneSignal dashboard Subscriptions page.
Next to the subscription, select the 3-dot options button and "Add to Test Subscriptions". Then name and date the test user so it is recognizable."
Add your subscription as a test subscription.
Navigate to Messages > Push > New Message > New Push and on the Push create form add a Message.
Create a new push to send to your test subscription.
Select "Test & Preview", find and check your test subscription, then click "Send Test Push".
Send yourself a test push.
You should receive the push you tested.
Test push received.
Browser Name | Android | Windows | macOS |
---|---|---|---|
Chrome / Chromium | Yes | Yes | No |
Firefox | Yes | Yes | No |
Safari | N/A | N/A | Yes |
Opera | Yes | Yes | No |
Edge | Yes | Yes | No |