Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter iwhitet3

    (@iwhitet3)

    Marking as resolved.

    Thread Starter iwhitet3

    (@iwhitet3)

    I see. I will pass that along to the client. I appreciate you taking the time to look into the problem.

    Thread Starter iwhitet3

    (@iwhitet3)

    Sure.
    1) I placed the web-push plugin directory in the theme plugins directory:
    vip-quickstart/www/wp-content/themes/vip/longitudes/plugins

    2) I activated the plugin via functions.php like so:
    require_once( WP_CONTENT_DIR . '/themes/vip/longitudes/plugins/web-push/wp-web-push.php' );

    3) I used the following values in the web push settings menu in the dashboard:

    title: use site title
    icon: use the site icon
    show subscription icon
    automatic prompting: ask the user to register as soon as he visits the site
    interval between prompts: 0
    push triggers: all checked
    google chrome support: Entered GCM API Key and GCM Project Number

    Thread Starter iwhitet3

    (@iwhitet3)

    Thank you for the quick reply.

    I installed the latest version (1.1.6) and I’m still having the same issues.

    Safari is still showing a syntax error due to the es6 arrow function used in this code:

    (function (global) {
    
        if (global.$swRegistrations) {
            return;
        }
    
        global.$swRegistrations = {};
    
        if ('serviceWorker' in navigator) {
            var enabledSw = [{
                "scope": "\/",
                "url": "\/?_wpswmanager=wpswmanager%2Fsw%2Fsw%40%2F"
            }
            ];
            enabledSw.forEach(entry => {
                var scope = entry.scope;
                var swUrl = entry.url;
                global.$swRegistrations[scope] = navigator.serviceWorker.register(swUrl, {
                    scope: scope
                });
            });
        }
    
    })(window);

    The stage server is no public and I will need to get approval to give you credentials. I’ll have to get back to you on that.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)