Web-push notification systems have one big characteristic that might not be obvious at first. For any website, there can only be one system collecting new subscribers. Therefore, any push notification provider must be uninstalled from a website before setting up Outpush.
The recommended approach to changing push providers is what we call a soft migration. In a nutshell, the current push providers - we will use OneSignal as an example - is replaced by Outpush on the website. The behaviour is that:
All new visitors who opt-in for notifications will be subscribed to the Outpush System
Old visitors that have an active subscription OneSignal will be automatically subscribed to Outpush next time they visit the website. This process happens in the background.
The publisher will always be able to keep using oneSignal to send notifications to the subscribers that have not been migrated to Outpush yet (that have not visited the website).
Verify that the path https://example.com/sw.js has no file in it. Please let your account manager know if this is not the case and further instructions will be provided.
Install Outpush service worker: this is simply adding one file to your website - you will find this file in your Outpush Dashboard.
Replace HTML Tags:
a. When you installed the previous system (OneSignal), they asked you to add an HTML Snippet (similar to the one added for google analytics).
b. We will need you to find that HTML Snippet and replace it for Outpush HTML Tag - which you’ll find in your Outpush Dashboard
<aside> ⚠️
Please note that you must keep the previous system’s (OneSignal) service worker file on your website. This will allow you to still send push notifications to the subscribers that have not been migrated to Outpush yet - aka that have not visited the website since the migration took place
</aside>