Integrations
Wix push notifications
Wix doesn’t let you upload files to your site root, and several push services have dropped Wix support because of that. There are two ways around it.
Why Wix needs a workaround
Web push requires a service worker served from your own domain. Wix doesn’t let you upload files to your site’s root, which is why OneSignal and others list Wix among the builders they don’t support for new web push setups. You have two options.
Option A: the hosted subscribe page (no code)
- Create a website in SuperWicket and turn on the hosted subscribe page with your logo and text.
- Add a button on your Wix site (“Get notifications”) that links to
https://superwicket.com/s/your-name. Good spots: the header, the end of blog posts, and your contact or thank-you page. - Send campaigns or connect your Wix blog’s RSS feed (
https://your-site.com/blog-feed.xml) for automatic new-post alerts.
Option B: on-site prompts with a Velo HTTP function
If your site uses a custom domain and you can enable Dev Mode (Velo), you can serve the service worker from your own domain through an HTTP function. This gives you normal on-page prompts.
- Turn on Dev Mode in the Wix editor.
- In the Backend section, create
http-functions.js(or add to it):import { ok } from 'wix-http-functions'; export function get_superwicketSw(request) { return ok({ headers: { 'Content-Type': 'application/javascript', 'Service-Worker-Allowed': '/', 'Cache-Control': 'public, max-age=300' }, body: "importScripts('https://superwicket.com/p/sw/YOUR_PIXEL_KEY.js');" }); } - Publish, then open
https://your-site.com/_functions/superwicketSw. You should see the one line of JavaScript. - In SuperWicket’s website settings, set the service worker path to
/_functions/superwicketSwand the scope to/. TheService-Worker-Allowedheader is what lets a worker in that folder cover the whole site. - Add the SuperWicket script under Settings, Custom Code, in the head, on all pages:
<script async src="https://superwicket.com/p/YOUR_PIXEL_KEY.js"></script>
Free wixsite.com addresses put your site in a sub-path, so the root scope isn’t available. Use Option A there, or connect a custom domain first.
Test it
Open your site in Chrome, accept the prompt (Option B) or subscribe on the hosted page (Option A), and send yourself a test from the dashboard. If nothing arrives, check your browser with the push tester, then see notifications not showing.
Frequently asked questions
Does OneSignal work with Wix?
OneSignal’s documentation lists Wix among website builders it no longer supports for new web push setups, because they can’t host a root service worker.
Do I need Velo to use push on Wix?
Only for subscribers to opt in on your own wix domain. The hosted subscribe page needs no code at all.
Try it on your own site
The Free plan has no time limit and needs no card. Add one script tag, or share a hosted subscribe page if you can’t upload files.