Support » Plugin: Progressive WordPress (PWA) » On element click: Define an element as an install-prompt trigger

  • Resolved nilver

    (@nilver)



    Thank you very much for the plugin is very good but I want to know how this option works (On element click: Define an element as an install-prompt trigger) I was investigating but I have not yet been able to configure it and I would like it because I understand this option is a custom banner to add to the home screen that is to replace it with another how to download application please could you help me.

    Thanks again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • sorry for the language I do not speak English I’m from Peru

    Plugin Author Nico Martin

    (@nico_martin)

    Hi @nilver

    That’s a feature if you create your own theme. Since Crome 68 it is possible to define a custom installation trigger.

    You could create a Button like this:
    <button class="install-now">Install now</button>
    Then you could use .install-now (the selector of the button) as a value of the install-prompt trigger selector, so a click on that trigger would show the native installation prompt.

    Kind regards,
    Nico

    josimarcsilva

    (@josimarcsilva)

    It worked for me. Thank you!

    Hello @nico_martin thousand apologies for the delay in cost and let you know that my question is resolved you are one of the great professionals congratulations and forgive again for the delay is that I was traveling and I am just entering my workplace.

    apologize for my english

    Plugin Author Nico Martin

    (@nico_martin)

    Hi @nilver

    No problem 🙂
    I’m glad it’s working!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.