• Hi, congratulations for the plugin it is certainly the most complete I have found for WordPress.

    I wanted to know if there is a way to create a button or if there is a way to click on an element, to ask the system to add the site to the home screen.

    This could be useful when users ignore adding the site to the home screen or refuse the first time they browse the site and therefore we may invite you to do this again without going through the phone settings.

    Browsing I saw that there is certainly a way through Javascript to do this, for example I found this:
    https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Add_to_home_screen

    I’ve tried the demo from both Chrome and Firefox and it works, but when I try to integrate this script into my site it doesn’t work.
    DEMO: https://mdn.github.io/pwa-examples/a2hs/

    Maybe your plugin already has a similar function?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Button to add the site to the home screen’ is closed to new replies.