When you migrate to Pushwoosh from a different web push provider, your existing subscribers will not be automatically imported or appear in your Pushwoosh dashboard immediately. This is the expected behavior.
A user who previously granted notification permissions on your domain will only be registered as a new subscriber in Pushwoosh when they visit your website again after you have installed the Pushwoosh SDK.
To ensure these returning visitors are subscribed automatically without being prompted again, you must use the autoSubscribe: true parameter in your Pushwoosh initialization code. This setting detects that the user has already granted permission to your site and seamlessly subscribes them to Pushwoosh.
Your subscriber count will gradually increase over time as more of your audience returns to your site.
Example SDK Initialization
Here is an example of a correct SDK initialization to automatically subscribe returning users who have already granted permissions:
window.Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(["init", {
logLevel: 'error', // or 'debug' for testing
applicationCode: 'YOUR_PUSHWOOSH_APP_CODE',
safariWebsitePushID: 'YOUR_SAFARI_WEBSITE_PUSH_ID',
autoSubscribe: true,
serviceWorkerUrl: '/pushwoosh-service-worker.js'
}]);
As long as this code is active on your site, users who had previously subscribed will be added to your Pushwoosh audience upon their next visit.
Comments
0 comments
Please sign in to leave a comment.