Wix Integration Steps
Instructions for installing Pushly when using Wix
Step 1: Install the Service Worker
import { ok } from 'wix-http-functions';
export function get_ServiceWorker(request) {
let options = {
"headers": {
"Content-Type": "application/javascript",
"Service-Worker-Allowed": "/"
},
"body": "importScripts('https://cdn.p-n.io/pushly-sw.min.js' + (self.location || {}).search || '');"
};
return ok(options);
}
Step 2: Add the Integration Code Snippet

Last updated