Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi there,

    You can display this native browser permission prompt automatically when a user visits your site if your site is an HTTPS site. If your site is not an HTTPS site (your site can only be accessed by https://site.com), then you’ll have to upgrade your site to HTTPS first. You can see some tips about how to upgrade your site here: https://documentation.onesignal.com/docs/guides-examples#switching-your-site-between-http-and-https-subscri.

    After your site is fully HTTPS, you can log in to your WordPress administrator panel, enable the toggle button that says “My site uses an HTTPS connection (SSL)”. You should see some new options appear and one of those is “Automatically prompt visitors to subscribe to notifications”.

    Thread Starter kimzaidem

    (@kimzaidem)

    thanks for answering.

    My website is not https, but i used the plugin “PushCrew” and had such notification. Is there a way to do without it to https?

    Sorry my english.

    Thread Starter kimzaidem

    (@kimzaidem)

    this is code

    <script type="text/javascript">
    (function(p,u,s,h){
        p._pcq=p._pcq||[];
        p._pcq.push(['_currentTime',Date.now()]);
        s=u.createElement('script');
        s.type='text/javascript';
        s.async=true;
        s.src='(my js in site).js';
        h=u.getElementsByTagName('script')[0];
        h.parentNode.insertBefore(s,h);
    })(window,document);
    </script>

    [Moderator Note: Please post code between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]

    Hi,

    Unfortunately we don’t currently have this feature built in. It looks like PushCrew is displaying a custom dialog. You can also add code to your site to display this automatically appearing dialog. We will be adding this feature in the future. You can track this issue to see when the feature will be completed: https://github.com/one-signal/OneSignal-Website-SDK/issues/78

    Thread Starter kimzaidem

    (@kimzaidem)

    thank’s

    You’re welcome!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Default notification’ is closed to new replies.