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.