You can manage both the subscription prompt (the initial banner asking for permission) and the subscription widget (a floating button) through your Pushwoosh Web SDK initialization script or settings in the Pushwoosh control panel.
1. Subscription Widget (Floating Button): This widget typically shows the current subscription status and can provide options to subscribe/unsubscribe.
* To disable it: In your Pushwoosh initialization script, set the subscribeWidget.enable
option to false
:
Pushwoosh.init({
// ... other settings
subscribeWidget: {
enable: false
}
});
Alternatively, you can remove the subscribeWidget
configuration object entirely if you do not want the widget.
* To customize it: Refer to the official documentation on Push Subscription Button Customization.
2. Subscription Prompt (Banner): This is the initial popup that asks users for permission to send notifications.
* Using the Default Prompt:
* To disable it: In your Pushwoosh control panel, navigate to your application's settings. Look for the subscription prompt settings and switch from the "Default" prompt to the "Custom" prompt option. You do not need to implement a custom prompt; simply selecting this option will prevent the default one from appearing.
* Using a Custom Prompt:
* If you have implemented your own custom subscription prompt logic (as described in the Custom Subscription Popup guide), you can control its appearance using the subscribePopup.enable
option in your Pushwoosh initialization script:
Pushwoosh.init({
// ... other settings
subscribePopup: {
enable: true // or false to hide it
}
});
Remember to clear your browser cache after making changes to your website's scripts to ensure you see the updated behavior.
Comments
0 comments
Please sign in to leave a comment.