{"id":273380,"date":"2025-09-07T05:26:12","date_gmt":"2025-09-07T05:26:12","guid":{"rendered":"https:\/\/www.revechat.com\/?post_type=help-center&#038;p=273380"},"modified":"2026-04-29T06:47:04","modified_gmt":"2026-04-29T06:47:04","slug":"web-push-setup-guide","status":"publish","type":"help-center","link":"https:\/\/www.revechat.com\/help-center\/web-push-setup-guide\/","title":{"rendered":"Web Push Setup Guide"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>To start using Web Push, you\u2019ll first need to integrate it into your website by adding a small setup file and code snippet. Once integrated, your visitors will see a browser prompt asking whether they want to receive notifications from your business. In REVE chat, you can fully customize this opt-in prompt\u2014adjusting the icon, text, and display settings\u2014to match your brand and maximize subscription rates.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Integrate web push on your website<\/h2>\n\n\n\n<p>To enable Web Push notifications on your website, follow these steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to the <strong><em>chat widget<\/em><\/strong> section under <em><strong>settings<\/strong><\/em>. <img data-dominant-color=\"f1f4f6\" data-has-transparency=\"true\" decoding=\"async\" width=\"600\" height=\"213\" class=\"has-transparency wp-image-273381\" style=\"--dominant-color: #f1f4f6; width: 600px;\" src=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration.png\" alt=\"\" srcset=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration.png 1908w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-300x106.png 300w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-1024x363.png 1024w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-768x272.png 768w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-1536x544.png 1536w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/li>\n\n\n\n<li>Click a chat widget for which you want to enable the web push feature and navigate to the Code <strong><em>Snippet tab<\/em><\/strong>.<\/li>\n\n\n\n<li>Expand the web push script. From there, click the <strong><em>Download File<\/em><\/strong> button. A file named <code>firebase-messaging-sw.js<\/code> will be downloaded. <img data-dominant-color=\"f2f6f5\" data-has-transparency=\"true\" decoding=\"async\" width=\"600\" height=\"297\" class=\"has-transparency wp-image-273383\" style=\"--dominant-color: #f2f6f5; width: 600px;\" src=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-2.png\" alt=\"\" srcset=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-2.png 1915w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-2-300x148.png 300w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-2-1024x506.png 1024w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-2-768x380.png 768w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-2-1536x760.png 1536w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/li>\n\n\n\n<li>Upload the downloaded file to the root directory of your website. One placed, you should be able to access it from your browser by going to this URL https:\/\/<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">yourwebsite<\/mark>\/firebase-messaging-sw.js<\/li>\n\n\n\n<li>Next click <strong><em>Copy Code<\/em><\/strong> button in the step 2, to copy the web push code snippet. Paste it just below the website widget script&#8217;s <code>&lt;!-- Start of REVE Chat Script-&gt;<\/code> and above the <code>&lt;script type=&#039;text\/javascript&#039;&gt;<\/code> that you have integrated in your website .<\/li>\n<\/ul>\n\n\n\n<p>After completing these steps, your website will be ready to send and receive Web Push notifications.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Customizing the web push opt-in prompt<\/h2>\n\n\n\n<p>To customize the opt-in prompt follow the below steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to the <strong><em>chat widget<\/em><\/strong> section under <em><strong>settings<\/strong><\/em>. <\/li>\n\n\n\n<li>Click a chat widget for which you want to enable the web push feature and navigate to the <strong><em>Notification <\/em><\/strong>tab.              <img data-dominant-color=\"f0f4f4\" data-has-transparency=\"true\" decoding=\"async\" width=\"600\" height=\"297\" class=\"has-transparency wp-image-273384\" style=\"--dominant-color: #f0f4f4; width: 600px;\" src=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-3.png\" alt=\"\" srcset=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-3.png 1912w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-3-300x148.png 300w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-3-1024x507.png 1024w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-3-768x380.png 768w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-3-1536x760.png 1536w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/li>\n\n\n\n<li>Upload an icon such as your brand logo or any image you want displayed in the prompt.<\/li>\n\n\n\n<li>Enter a short headline that tells users what the prompt is about.<\/li>\n\n\n\n<li>Add a description explaining why you\u2019re requesting notifications, such as updates, offers, or news.<\/li>\n\n\n\n<li>Customize the text of the approve button (e.g., \u201cYes, Notify Me\u201d) and cancel button (e.g., \u201cMaybe Later\u201d).<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Configuring opt-in prompt settings<\/h2>\n\n\n\n<p>Users can configure where to show or when to show the opt-in prompt notification using the notification settings. Follow the below steps to configure the notification settings by scrolling down-<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Enable Notification Permission<\/strong>\n<ul class=\"wp-block-list\">\n<li>Turn on the toggle to allow opt-in notifications on your website.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Set When to Show the Prompt<\/strong>\n<ul class=\"wp-block-list\">\n<li>After a visitor spends a certain number of seconds on the site.<\/li>\n\n\n\n<li>After a visitor views a specific number of pages.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Customize the Prompt Design<\/strong>\n<ul class=\"wp-block-list\">\n<li>Design Style: Select from two available designs.<\/li>\n\n\n\n<li>Animation: Choose how it appears\u2014Drop-in or Slide-in.<\/li>\n\n\n\n<li>Position: Decide whether to display the prompt at the top of the page or in the center for maximum visibility.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Configure Re-prompt Delay<\/strong>\n<ul class=\"wp-block-list\">\n<li>If a visitor declines the notification, set after how many days the opt-in prompt should reappear.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-dominant-color=\"f0f4f5\" data-has-transparency=\"true\" style=\"--dominant-color: #f0f4f5;\" decoding=\"async\" width=\"1024\" height=\"504\" src=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-4-1024x504.png\" alt=\"\" class=\"has-transparency wp-image-273452\" srcset=\"https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-4-1024x504.png 1024w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-4-300x148.png 300w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-4-768x378.png 768w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-4-1536x756.png 1536w, https:\/\/www.revechat.com\/wp-content\/uploads\/2025\/09\/Web-Push-Integration-4.png 1915w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To start using Web Push, you\u2019ll first need to integrate it into your website by adding a small setup file and code snippet. Once integrated, your visitors will see a browser prompt asking whether they want to receive notifications from your business. In REVE chat, you can fully customize this opt-in prompt\u2014adjusting the icon, text, [&hellip;]<\/p>\n","protected":false},"author":36,"featured_media":0,"menu_order":0,"template":"","meta":{"_acf_changed":false,"footnotes":""},"help_center_type":[1865],"class_list":["post-273380","help-center","type-help-center","status-publish","hentry","help_center_type-web-push-campaign"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.revechat.com\/wp-json\/wp\/v2\/help-center\/273380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.revechat.com\/wp-json\/wp\/v2\/help-center"}],"about":[{"href":"https:\/\/www.revechat.com\/wp-json\/wp\/v2\/types\/help-center"}],"author":[{"embeddable":true,"href":"https:\/\/www.revechat.com\/wp-json\/wp\/v2\/users\/36"}],"version-history":[{"count":3,"href":"https:\/\/www.revechat.com\/wp-json\/wp\/v2\/help-center\/273380\/revisions"}],"predecessor-version":[{"id":302899,"href":"https:\/\/www.revechat.com\/wp-json\/wp\/v2\/help-center\/273380\/revisions\/302899"}],"wp:attachment":[{"href":"https:\/\/www.revechat.com\/wp-json\/wp\/v2\/media?parent=273380"}],"wp:term":[{"taxonomy":"help_center_type","embeddable":true,"href":"https:\/\/www.revechat.com\/wp-json\/wp\/v2\/help_center_type?post=273380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}