This section explains how to create a link to send users to for instant installation.
For example, you can use this link in a form of a QR code on printed materials, or as a shortlink in messages, or as a link in email campaigns.
1. Create a New Page at Your Website
Note, that this will be the page where you lead users to. It is highly recommended that this page has both header and footer of your website.
Name this page, for example - /mobsted-app, so the full address of it will be like yourdomain.com/mobsted-app
2. Add the following code to the same place where you added our JS snippet:
<script type="text/javascript"> if ( window.location.href.indexOf("/appinstall") > -1 ) { window.addEventListener("load", function(event) { window.addEventListener('pwalessinited', function() { pwaless.showWidget('main'); }); }); } </script> |
---|