• Hello,

    i want to delay OneSignal’s Prompt to subscribe to messages by 10 Seconds. I’ve tried both of these codes but none of them work.

    document.addEventListener('DOMContentLoaded', function() {
        setTimeout(function() {
            if (typeof OneSignal !== 'undefined') {
                OneSignal.push(function() {
                    OneSignal.showSlidedownPrompt();
                });
            }
        }, 10000); 
    });
    
    document.addEventListener('DOMContentLoaded', function() {
        setTimeout(function() {
            OneSignal.push(function() {
                OneSignal.showSlidedownPrompt();
            });
        }, 10000);
    });
    

    I also tried this code but it is “too far” as i only need a delay. I also quite don’t understand in the first place why you’ve added text to a delay code, i think that should be overlooked. Because i don’t want to change any text or function, i simply want to delay OneSignal

    The page I need help with: [log in to see the link]

  • The topic ‘Delaying does not work’ is closed to new replies.