• Resolved supertrooper2

    (@supertrooper2)


    First I would like to say what a great plugin OneSignal Push really is.

    I would like to delay the popup until after 2 or page loads but have been unable to find this option in the settings:

    Please advise how this can be achieved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello, thank you for the kind words!

    You can delay the prompt following this guide: https://documentation.onesignal.com/docs/wordpress-customizations#customizing-subscription-prompts

    If you need assistance, please contact our support team directly at [email protected]

    We will be happy to assist you asap!

    Thread Starter supertrooper2

    (@supertrooper2)

    Following the above guide does not work, and the prompt still appears immediately when opening the website in an incognito window.

    In addition when clicking the login link I get the following error message at the top of the page:

    // Delay Only Example setTimeout(function(){ console.log(“about to initialize OneSignal”); window._oneSignalInitOptions.promptOptions = { slidedown: { prompts: [ { type: “push”, autoPrompt: true, text: { /* actionMessage limited to 90 characters */ actionMessage: “Your Custom Action Message”, /* acceptButton limited to 15 characters */ acceptButton: “Yes”, /* cancelButton limited to 15 characters */ cancelButton: “No”, }, delay: { /* seconds to wait for display */ timeDelay: 30, /* # pageviews for prompt to display */ pageViews: 2, } } ] } } window.OneSignal = window.OneSignal || []; window.OneSignal.push(function() { window.OneSignal.init(window._oneSignalInitOptions); }); }, 3000);

    Please help.

    Thread Starter supertrooper2

    (@supertrooper2)

    My apologies. After clearing the page cache the delay does work. However the code still shows at the top of each page, and I can’t figure out how to resolve this issue. Please help.

    Thread Starter supertrooper2

    (@supertrooper2)

    This code has been added into the header. Should it have been inserted somewhere else instead. Please advise.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to Delay Push Notifications’ is closed to new replies.