Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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. 




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>
  • No labels