n> {</span>
<span id="cb935-2"><a href="mobile-pwa.html#cb935-2" aria-hidden="true" tabindex="-1"></a>  <span class="co">// Install logic</span></span>
<span id="cb935-3"><a href="mobile-pwa.html#cb935-3" aria-hidden="true" tabindex="-1"></a>}<span class="op">;</span></span></code></pre></div>
<p>Once the installation criteria are met, the web browser raises the <strong>beforeinstallprompt</strong> event (except
on the iOS platform, which is not compatible yet). We add an event listener inside <code>setPWA<