Still not sure what PWA is? Read more here
PWA integration with iZooto is the same as that of a typical integration.
- Insertion of the JS code
Add the JS code before the 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>
- Uploading Files
Two files - izooto.html and 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 12 months ago