If the web push subscription prompt isn't appearing on your website, here are the common areas to investigate:
-
Pushwoosh SDK Initialization:
- Is the SDK loaded? Ensure the Pushwoosh Web SDK script is correctly integrated and loading on the pages where you expect the prompt.
- When is it initialized? The SDK might be configured to initialize only after a specific user action, such as logging into an account. If this is the case, the subscription prompt will only appear after that action is completed. Try logging in if your site requires user authentication before showing the prompt.
-
Custom Website CSS:
- Is the prompt hidden by CSS? Your website's custom CSS stylesheets could have rules that inadvertently hide the prompt.
- Check for CSS rules like
display: none;
,visibility: hidden;
, or similar, potentially with an!important
declaration, that might be applied to the prompt's HTML element or one of its parent containers. For example, a rule like#your-prompt-id { display: none !important; }
or.your-prompt-class { visibility: hidden; }
. - How to check: Use your browser's developer tools (often accessed by right-clicking on the page and selecting "Inspect" or "Inspect Element"). This allows you to see the HTML structure and the CSS rules affecting the elements where the prompt should be. Look for the Pushwoosh prompt elements (or elements you expect to contain the prompt) and examine their applied styles to see if they are being hidden by your site's CSS.
-
Targeting and Display Rules (If Applicable):
- If you have configured specific rules within Pushwoosh or your site's logic for when and where the prompt should appear (e.g., only on certain pages, for specific user segments, or intentionally hidden on mobile devices), verify these settings are not unintentionally preventing the prompt from showing in your current testing scenario.
If you've checked these points and the prompt still doesn't appear, please also ensure that your website configuration within the Pushwoosh control panel is complete and that web push notifications are enabled for your site.
Comments
0 comments
Please sign in to leave a comment.