Setting Up Permission Request Prompt

In your account, go to SettingsWeb Push, select the site, and click Edit.

Account menu with Settings highlighted and Web Push settings page with the Edit button for a connected website highlighted

Permission Settings

In the Permission settings window, the active tab will correspond to the type of subscription you selected when adding the website to your Yespo account. If you select Double Opt-in, the Custom dialog window type will be active by default.

If necessary, select another type and proceed to the settings.

Permission settings page with Double Opt-In and Single Opt-In labels underlined, showing Widget, Custom dialog, Panel, and Default dialog window types

Activate the Show prompt sample to preview how the request will look.

Permission settings page with the Show prompt sample toggle enabled and a preview dialog showing Allow and Block buttons

Double Opt-in

The advantage of the double opt-in subscription is the ability to customize the appearance of the subscription and confirmation windows. In this case, a user will first see your customized window, and then the standard one.

There are three types of double opt-in subscription windows:

  • Widget — a window with an icon that appears in the bottom right or bottom left of the browser.
Permission settings page with the Widget option highlighted and its bottom corner preview dialog with a bell icon
  • Custom dialog — appears in the top left corner of the page.
Permission settings page with the Custom dialog option highlighted and its top-left preview dialog
  • Panel — a bar that appears across the full width of the page, at the top or bottom.
Permission settings page with the Panel option highlighted and its full-width preview bar

Let's consider the settings for each of them.

Widget

The widget will remain on the screen until the user allows or denies receiving push notifications. After the reminder, users who have unsubscribed will be able to turn on notifications again.

The following settings are available for the widget:

Widget settings panel with numbered fields for Background color, Icon, Placement, Animation, Show unblock reminder, prompt text, colors, and Permission display
  1. Background color: Select the background color of the widget icon from the palette, or enter the code in HEX or RGB format.
Widget settings Background color field with the color picker open showing a HEX color value
  1. Icon: Click Change image and select an icon for the widget in JPEG or PNG format, up to 200 KB in size.
Widget settings Icon field with the Change image button highlighted and a bell icon preview
  1. Placement: Bottom left or bottom right corner. 
Widget settings Placement options with Bottom left corner selected, showing the widget icon in the corresponding corner of the page

Set the widget's paddings — from the side or bottom. The maximum value is 300 px.

Widget settings with the Side and Bottom padding fields underlined, each set to 20 px
  1. Animation: Select the type of animation to attract extra attention.
Widget settings Animation field with the dropdown set to None
  1. Show unblock reminder

Activate the option so that users can see the actions they need to take if the subscription request is blocked.

Widget settings with the Show unblock reminder toggle enabled, plus Widget text, Reminder text, and Reminder display fields

The following settings are available for this option:

  • Widget text and reminder text
Widget settings with the Widget text and Reminder text fields underlined
  • Reminder display: right after or a certain period after blocking.
Widget settings Reminder display options with the day dropdown open showing hour and day choices

Activate the Preview switch to see how the reminder will look.

Widget settings overview with Show unblock reminder enabled and the Permission prompt, Block button, and Allow button configuration fields
  1. Permission prompt and button text: Click the text field and enter the information that will be displayed on the buttons and in the prompt.
Permission prompt preview with the Block and Allow buttons, next to Permission prompt, Block button, and Allow button text fields
  1. Text color, background color, and button color: Click the corresponding field, select a color from the palette, or enter the code in HEX or RGB format.
Preview dialog with the Allow button highlighted and a color picker open on the Allow button's color field
  1. Permission display

Set the parameters:

  • Show upon: page load or click.

If you set Show upon click, the request window will appear after the user clicks on a specific element on the website (banner, button, etc.). Add class="es-push-prompt-init" to this element in the website’s code;

  • Time delay after entering the website before prompt display. The maximum value is 1000 seconds.
Permission display settings with Page load selected under Show upon and the time delay field set to 0 seconds
Multilanguage

Use the multilingual option in widgets to automatically address users in their languages. Learn more >

Permission settings page with the language dropdown open showing the Specify the default language option

Custom dialog/Panel

They have similar settings, with one difference — for the Panel window type, you can select the placement of the permission prompt: top or bottom

Custom dialog and Panel settings with the Permission prompt placement option highlighted, set to Top

The method of changing the settings is similar to that of the Widget.

Single Opt-in

The default browser window, where you can only configure the Permission Display option.

📘

Note

Web push permission is controlled by the browser, even when the site is installed as a PWA (Progressive Web App). There is no dedicated in-app unsubscribe screen provided by the platform itself — users can turn off web push notifications either via the browser's own notification/site-permission settings, or via the settings reachable from a received push notification.

Default browser subscription request dialog highlighted, shown next to the Permission settings page with Default dialog selected

Click the Save button in the top menu to save the subscription request settings.

Permission settings page with the Save button highlighted in the top right corner

Features of Permission Settings for Safari

In the general subscription request settings window, you can also add your custom brand logo, which will be displayed for Safari users on macOS. For subscribers using other browsers, you can set any other image while creating the messages.

Click Change image and select a logo for Web Push in JPEG or PNG format, with a size of up to 200 KB. The image must be square-shaped with a minimum resolution of 256x256 px.

Default icon for web push notifications section with a bell icon preview and the Change image button highlighted


Did this page help you?