Migrating to a new Web Push Notification Platform
Migrating your Web Push notification from one vendor to another might seem cumbersome, but you will be surprised to know how easy it is on Vizury’s platform.
Let us see how websites operating on HTTPS protocol can migrate their subscribers from one web push notification platform to the other without losing users in the process. We have also tried to answer some of the most frequently asked questions.
With respect to migration, who should own the Domain and the Subscriber?
Domain Ownership: With respect to web-push-notification migration, the domain ownership should always lie with the client, that is you. This is advisable as every subscription is bound to the domain the user is subscribed to.
Subscriber Ownership: The subscriber ownership lies with us. That is, the GCM project is owned by Vizury.
|Subscription Domain||GCM details||Migration Possible?|
So how does it work?
As a user visits a website, he is prompted to subscribe to push notifications. When he clicks on the “Allow” button, a service worker is registered for the domain. It manages communication using push notifications for the subscribed users.
A service worker is a script that runs in the background and is responsible for owning and controlling the web pages of the domain where it’s installed. Service workers are deployed on the top level root of your website, on the same location as “Manifest.json”. So when a subscriber is due to get a new notification, the service worker takes over. They display the notification to the subscriber and redirects the user to a landing page.
The identification name given to Service Worker differs from vendor to vendor. The nomenclature for Service Worker at Vizury is “vizurySDKWorker.js”.
Do the NEW Users need to be migrated?
There is no need to migrate new users. Whenever a new visitor comes to your website, they will be prompted as usual.
Will the OLD SUBSCRIBERS be prompted again for subscription?
The old subscribers will not be prompted again for a subscription. In the background, the service worker who is registered on the user’s browser will receive an update and will process accordingly. What this means is that you will be able to send notifications using Vizury, the new service provider.
Existence of more than one vendor
Can I use both, old as well as new vendor to send notifications?
You could do this but it isn’t good practice since sending notifications from the older vendor might bring back migrated users. Ensure you always send notifications from the new platform.
Will subscribers get two notifications? In-case there are two vendors sending notifications?
No, subscribers won’t receive the same notification twice since the domain they are registered to is the same.
How long will it take to migrate all subscribers?
There is no fixed duration. This depends completely on repeat visits. The higher the frequency of repeat visits, the faster the migration of users.