Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Instruction on moving active subscribers from your current

push notifications provider to Notix.

Step 1: Remove previous push service tags from your site/landing page
If you have some tags from previous push services you should remove them
firstly. After this adding new subscribers to old push service will be impossible.

Step 2: Replace the content of service worker from your current


provider
Each push service uses a service worker for collecting push subscribers. This is
small file with *.js extension that is located somewhere on site that collects push
subscribers. For moving existing active users to Notix this file content should be
replaced, but file name should be kept without changes.

Put this content into service worker file:

self.options = {"appId": "NOTIX_APP_ID"}

importScripts("https://notix.io/ent/current/enot.sw.min.js");

Replace string NOTIX_APP_ID with your appId value that can be found on the
page with tag:

Step 3: Send a message

Once you have removed the tags of the previous push service from your
website / landing page, and have replaced the content of the old provider
service worker, send a message from your old push service to all active
subscribers.

When users get this message, they get migrated to Notix. Since delivery of
messages takes time, and not all users are online right at the moment when you
send out this message - allow up to 24 hours for the migration process.

Users that get migrated, will be reflected as new subscribers in your Notix
dashboard.

You might also like