How to manually control when to display the opt-in dialog on my site?


  1. Go to your WonderPush dashboard. In the Settings / Configuration page, in the Website tab, go to the Opt-in mode step.

  2. Choose the Manually option for the way you want to prompt your users.
    Please allow up to 12h for the setting to be taken into account in our various caching layers.

  3. In your pages, use the following code:

    WonderPush.ready(function(WonderPushSDK) {
        if (!WonderPushSDK.getNotificationEnabled()) {