Lack of interest Add an "Install app" button on desktop if the browser supports it

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Blockhead

Member
I've recently found out that you can install a PWA on desktop. It would be cool to see XenForo prompt you to install it via something similar to the push notification bottom banner since the button can be overlooked in the address bar
 
Upvote 2
This suggestion has been closed. Votes are no longer accepted.
You can add this code to anywhere you like by using a tempate mod,
HTML:
<div class="offCanvasMenu-installBanner js-installPromptContainer" style="display: none;" data-xf-init="install-prompt">
   <div class="offCanvasMenu-installBanner-header">{{ phrase('install_app') }}</div>
   <xf:button class="js-installPromptButton">{{ phrase('install') }}</xf:button>
</div>

Modify CSS class names, then use extra.less to style it however you like. (or use your own style sheet and use <xf:css src"app_invite_install.less"> to include it

You just have to have data-xf-init="install-prompt" in the container,
And also have display:none style property on it, so it hides by default, and javascript will detect installable devices, and then display the content.
 
Top Bottom