# Por que meu fórum não exibe automaticamente o "Adicionar à tela inicial" (PWA)?

**URL:** <https://meta.discourse.org/t/why-my-forum-not-pop-up-add-to-home-screen-pwa-automatically/112116>\
**Category:** Support\
**Tags:** pwa\
**Created:** [Março 20, 2019, 2:16am UTC](https://meta.discourse.org/t/why-my-forum-not-pop-up-add-to-home-screen-pwa-automatically/112116 "2019-03-20T02:16:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lee533](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lee533/32/134468_2.png) [@Lee533](https://meta.discourse.org/u/Lee533)\
**Post date:** [Março 20, 2019, 2:16am UTC](https://meta.discourse.org/t/why-my-forum-not-pop-up-add-to-home-screen-pwa-automatically/112116/1 "2019-03-20T02:16:24Z")

</div>

This is [my forum](http://discussions.tricklehub.com/), and when I using Android version Chrome to visiting it, it isn’t pop-up “Add to Home screen” automatically. So, how to let it pop-up automatically?

Thanks.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [Março 20, 2019, 2:34am UTC](https://meta.discourse.org/t/why-my-forum-not-pop-up-add-to-home-screen-pwa-automatically/112116/2 "2019-03-20T02:34:27Z")

</div>

It is not https for one thing and that is required for it to work..

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [Março 20, 2019, 7:47pm UTC](https://meta.discourse.org/t/why-my-forum-not-pop-up-add-to-home-screen-pwa-automatically/112116/3 "2019-03-20T19:47:52Z")

</div>

Run `./discourse-setup` again and provide an email for Let’s Encrypt when asked. After the site is back up, visit the wizard and upload all necessary logos.

---

<div class="post-metadata">

**Author:** ![Lee533](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lee533/32/134468_2.png) [@Lee533](https://meta.discourse.org/u/Lee533)\
**Post date:** [Março 21, 2019, 12:18am UTC](https://meta.discourse.org/t/why-my-forum-not-pop-up-add-to-home-screen-pwa-automatically/112116/4 "2019-03-21T00:18:42Z")

</div>

When I run `./discourse-setup` again and provide an email for Let’s Encrypt, it shows:

```
Let's Encrypt will be enabled for tricklehub@gmail.com
LETSENCRYPT_ACCOUNT_EMAIL change failed.
web.ssl.template.yml NOT ENABLED--was it on already?
letsencrypt.ssl.template.yml NOT ENABLED -- was it on already?

Unfortunately, there was an error changing

-d This may happen if you have made unexpected changes.

```

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [Março 21, 2019, 12:25am UTC](https://meta.discourse.org/t/why-my-forum-not-pop-up-add-to-home-screen-pwa-automatically/112116/5 "2019-03-21T00:25:08Z")

</div>

Looks like `./discourse-setup` can’t handle that.

So you will need to edit the `app.yml`.

```plaintext
cd /var/discourse
nano containers/app.yml

```

Remove the `#` in the start of the lines that mention one of the following (they should be at the top of the file)

- web.ssl.template.yml
- letsencrypt.ssl.template.yml

Also remove the `#` in the line that mentions Let’s Encrypt email, and put a valid email in the front.

After that running a `./launcher rebuild app` should do it.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [Março 21, 2019, 12:27am UTC](https://meta.discourse.org/t/why-my-forum-not-pop-up-add-to-home-screen-pwa-automatically/112116/6 "2019-03-21T00:27:53Z")

</div>

Should this work @pfaffman?

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [Março 21, 2019, 12:35am UTC](https://meta.discourse.org/t/why-my-forum-not-pop-up-add-to-home-screen-pwa-automatically/112116/7 "2019-03-21T00:35:08Z")

</div>

It’s a little fragile. My best guess is that he first uncommented those templates by hand, but didn’t set the let’s encrypt email address. Mostly, if you edit `app.yml`, yourself you’re on your own, especially if you break something.

Edit: I presume “this” means `discourse-setup`.

---

<div class="post-metadata">

**Author:** ![Lee533](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lee533/32/134468_2.png) [@Lee533](https://meta.discourse.org/u/Lee533)\
**Post date:** [Março 21, 2019, 12:38am UTC](https://meta.discourse.org/t/why-my-forum-not-pop-up-add-to-home-screen-pwa-automatically/112116/8 "2019-03-21T00:38:19Z")

</div>

So a part of [this guide](https://meta.discourse.org/t/setting-up-https-support-with-lets-encrypt/40709) is wrong, you don’t need to edit this:

> ` - "templates/web.template.yml"`

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [Março 21, 2019, 12:44am UTC](https://meta.discourse.org/t/why-my-forum-not-pop-up-add-to-home-screen-pwa-automatically/112116/9 "2019-03-21T00:44:10Z")

</div>

> [@Set up HTTPS support with Let's Encrypt](https://meta.discourse.org/t/set-up-https-support-with-lets-encrypt/40709/1):
>
> **Note:** `./discourse-setup` will enable Let’s Encrypt

It tries to tell you not to follow the guide because you’ll likely do it wrong and to instead do it the easy way.

And now it says

> [@Set up HTTPS support with Let's Encrypt](https://meta.discourse.org/t/set-up-https-support-with-lets-encrypt/40709/1):
>
> **Note:** `./discourse-setup` will enable Let’s Encrypt. And as of March 2017, you can run it again, and press return a few times and enter your email address ; the script will include the required templates and insert your email address as required. Unless you are an expert sysadmin and know a reason not to do that, you should run `discourse-setup` rather than read any further. (If you installed Discourse a _long time ago_ , you might still have to edit `app.yml` by hand.)

---

<div class="post-metadata">

**Author:** ![Lee533](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lee533/32/134468_2.png) [@Lee533](https://meta.discourse.org/u/Lee533)\
**Post date:** [Março 21, 2019, 12:46am UTC](https://meta.discourse.org/t/why-my-forum-not-pop-up-add-to-home-screen-pwa-automatically/112116/10 "2019-03-21T00:46:43Z")

</div>

@Falco Wait, it still not pop-up “Add to Home screen” automatically.

 ![Screenshot_2019-03-21-08-42-41](https://global.discourse-cdn.com/meta/original/3X/0/0/002b8de0e604b68b87cf8e0d20fe42c310f3a8a1.png)

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [Março 21, 2019, 1:31am UTC](https://meta.discourse.org/t/why-my-forum-not-pop-up-add-to-home-screen-pwa-automatically/112116/11 "2019-03-21T01:31:55Z")

</div>

That happens now for two reasons:

1. You didn’t upload logos in the wizard. Please visit [https://discussions.tricklehub.com/wizard](https://discussions.tricklehub.com/wizard) and fill all the logos. In special, the large logo is mandatory.

2. You did check `native app install banner` in the site settings. Disable that for the PWA install banner.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [Abril 20, 2019, 1:32am UTC](https://meta.discourse.org/t/why-my-forum-not-pop-up-add-to-home-screen-pwa-automatically/112116/12 "2019-04-20T01:32:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
