A guide to integrate Brevz into a website (HTTPS)
This guide will help you setting up Brevz with your HTTPS website. Your website must begin with
https:// to use this guide.
If you have some trouble with this guide, you can come to our slack to ask questions.
This tutorial walks you through installing and configuring Brevz on your website. To do this tutorial you'll need a Brevz account, do not worry, Brevz got a free tier. If you don't have an account yet, create one here.
As you know, Brevz has two main features:
The service worker is a component which will run in a background mode and display notifications when they need to be displayed.
If you do not have any service worker, you must download sw.js and upload it into your root directory. It must be served to be accessible with:
If you have an existing service worker, just add this line to the end of your service worker.
The manifest.json describe metadata about the website, if you are looking for information about the
manifest.json check out the MDN Web Docs about Manifest.json.
You just have to download it from the integration tab and upload it into your root directory. It must be served to be accessible with
You can merge the manifest file that Brevz provides here with your own, just make sure you have the
gcm_sender_id to ensure that the notifications work with Chrome 51 and earlier versions as well as Opera for Android and the Samsung browser.