Still not sure what PWA is? Read more here.
PWA integration with iZooto is the same as that of a typical integration.
Add the JS code before the
</head> tag on all the website pages. A sample code is mentioned below.
<script> window._izq = window._izq || ; window._izq.push(["init"]); </script> <script src="https://cdn.izooto.com/scripts/abc123def456.js"></script>
You can find the JS code for your website under Settings > Setup.
You can also add this code asynchronously in case you are worried about the load time of your website.
<script> window._izq = window._izq || ; window._izq.push(["init"]); </script> <script async="true" src="https://cdn.izooto.com/scripts/abc123def456.js"></script>
Two files -
service-worker.js need to be uploaded to the root/non-root folder of your website.
- Since PWA uses a service worker of its own, it is recommended that you append the contents of iZooto's service worker into the PWA service worker.
- Once the iZooto Service worker is appended, you need to mail us at [email protected] and tell us the path on which you have placed the service worker file so that we can update the same JS path.
Below is a sample iZooto JS
var izCacheVer = "1"; importScripts("https://cdn.izooto.com/scripts/workers/505bcec649da1c69088e9a1ec0668abb4e1dda38.js");
You can read the detailed integration instructions on file placement here.
The Opt-in prompt looks exactly like the one you will receive on a web page. You will have to click on 'Allow' to receive notifications and 'Block' to opt-out from receiving notifications.
Updated 5 months ago