# Criteria to ensure Discourse instance will work as a Chrome webapp on mobile

**URL:** https://meta.discourse.org/t/criteria-to-ensure-discourse-instance-will-work-as-a-chrome-webapp-on-mobile/50112
**Category:** Support
**Created:** [13 september 2016 om 22:00 UTC](https://meta.discourse.org/t/criteria-to-ensure-discourse-instance-will-work-as-a-chrome-webapp-on-mobile/50112 "2016-09-13T22:00:34Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![auryn\_macmillan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/auryn_macmillan/32/56633_2.png) [@auryn\_macmillan](https://meta.discourse.org/u/auryn_macmillan)
#### Post date: [13 september 2016 om 22:00 UTC](https://meta.discourse.org/t/criteria-to-ensure-discourse-instance-will-work-as-a-chrome-webapp-on-mobile/50112/1 "2016-09-13T22:00:34Z")

</div>

I have a few of instances of Discourse running for different projects. They are pretty much identical, other than a couple of minor CSS differences, but are behaving differently when I try to use the “Add to homescreen” option on chrome for android. The majority work without a hitch (imitating a native app; splash screen, no URL bar, etc), however two instances seem to simply put a shortcut on the homescreen and open up in a new tab in chrome.

Are there any specific criteria that I might have neglected to set up in the two misbehaving that might be causing this? (I’ve tested it across a couple of devices, so I’m confident I’m not the only one experiencing it).

 ![](https://global.discourse-cdn.com/meta/original/3X/6/e/6e84a0edd22bfca9840c7f5075dc75176a93a6da.png) ![](https://global.discourse-cdn.com/meta/original/3X/3/6/36a703a7fca1a04ff1fef45d4994fc1c3993e09a.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: [13 september 2016 om 22:03 UTC](https://meta.discourse.org/t/criteria-to-ensure-discourse-instance-will-work-as-a-chrome-webapp-on-mobile/50112/2 "2016-09-13T22:03:21Z")

</div>

As said [here](https://meta.discourse.org/t/add-to-homescreen-banner-on-android/42973) you need https. Can you share the links?

---

<div class="post-metadata">

### Author: ![auryn\_macmillan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/auryn_macmillan/32/56633_2.png) [@auryn\_macmillan](https://meta.discourse.org/u/auryn_macmillan)
#### Post date: [13 september 2016 om 22:04 UTC](https://meta.discourse.org/t/criteria-to-ensure-discourse-instance-will-work-as-a-chrome-webapp-on-mobile/50112/3 "2016-09-13T22:04:40Z")

</div>

Both are using https I believe:

[https://forum.gnosis.pm/](https://forum.gnosis.pm/)  
[https://forum.ether.camp/](https://forum.ether.camp/)

---

<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: [13 september 2016 om 22:07 UTC](https://meta.discourse.org/t/criteria-to-ensure-discourse-instance-will-work-as-a-chrome-webapp-on-mobile/50112/4 "2016-09-13T22:07:10Z")

</div>

> [@auryn\_macmillan](#):
>
> [https://forum.gnosis.pm/](https://forum.gnosis.pm/)

Both [manifest.json](https://forum.gnosis.pm/manifest.json) is somehow broken. How they did it is beyond me.

Maybe they forgot to set a required field…

---

<div class="post-metadata">

### Author: ![auryn\_macmillan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/auryn_macmillan/32/56633_2.png) [@auryn\_macmillan](https://meta.discourse.org/u/auryn_macmillan)
#### Post date: [13 september 2016 om 22:08 UTC](https://meta.discourse.org/t/criteria-to-ensure-discourse-instance-will-work-as-a-chrome-webapp-on-mobile/50112/5 "2016-09-13T22:08:47Z")

</div>

> [@Falco](#):
>
> Maybe they forgot to set a required field.

What are the required fields? And how would I go about fixing this?

---

<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: [13 september 2016 om 22:10 UTC](https://meta.discourse.org/t/criteria-to-ensure-discourse-instance-will-work-as-a-chrome-webapp-on-mobile/50112/6 "2016-09-13T22:10:38Z")

</div>

My best guess is they didn’t set the `apple_touch_icon_url` SiteSetting. Try sending a PM to an admin and asking then.

---

<div class="post-metadata">

### Author: ![auryn\_macmillan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/auryn_macmillan/32/56633_2.png) [@auryn\_macmillan](https://meta.discourse.org/u/auryn_macmillan)
#### Post date: [13 september 2016 om 22:17 UTC](https://meta.discourse.org/t/criteria-to-ensure-discourse-instance-will-work-as-a-chrome-webapp-on-mobile/50112/7 "2016-09-13T22:17:35Z")

</div>

I’m the admin for both.

`apple_touch_icon_url` for [https://forum.gnosis.pm](https://forum.gnosis.pm) is:

 ![](https://global.discourse-cdn.com/meta/original/3X/7/5/75e54d265792926f517b98ea82e996e16ab9d0f3.png)

`mobile_logo_url` for [https://forum.gnosis.pm](https://forum.gnosis.pm) is:

 ![](https://global.discourse-cdn.com/meta/original/3X/a/9/a9c1dfd560f22b20368df7c29fb720acfb57de6d.png)

 ![](https://global.discourse-cdn.com/meta/original/3X/1/3/1311117604ef867a3b7679d6c1ec6f55462e1b13.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: [13 september 2016 om 22:27 UTC](https://meta.discourse.org/t/criteria-to-ensure-discourse-instance-will-work-as-a-chrome-webapp-on-mobile/50112/8 "2016-09-13T22:27:07Z")

</div>

> [@auryn\_macmillan](#):
>
> I’m the admin for both.

Hahaha, you should’ve mentioned it earlier 😛.

The only SiteSettings that we use are `title` and `apple_touch_icon_url`.

> <https://github.com/discourse/discourse/blob/aa4dccd0a1c01dc216dca94c4a6a4b5760a545b9/app/controllers/metadata_controller.rb#L15>

Do you use any plugins? The push notifications one mess with this controller I think.

---

<div class="post-metadata">

### Author: ![auryn\_macmillan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/auryn_macmillan/32/56633_2.png) [@auryn\_macmillan](https://meta.discourse.org/u/auryn_macmillan)
#### Post date: [13 september 2016 om 22:28 UTC](https://meta.discourse.org/t/criteria-to-ensure-discourse-instance-will-work-as-a-chrome-webapp-on-mobile/50112/9 "2016-09-13T22:28:57Z")

</div>

> [@Falco](#):
>
> Do you use any plugins? The push notifications one mess with this controller I think.

Yeah I have the push notifications plugin installed on both, I’ll try rebuilding one without and see if that fixes it.

---

<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: [13 september 2016 om 22:30 UTC](https://meta.discourse.org/t/criteria-to-ensure-discourse-instance-will-work-as-a-chrome-webapp-on-mobile/50112/10 "2016-09-13T22:30:28Z")

</div>

> [@auryn\_macmillan](#):
>
> Yeah I have the push notifications plugin installed on both,

Hoho, found it!

I think that just configuring the plugin may work. You either install and fill all the fields or uninstall.

---

<div class="post-metadata">

### Author: ![auryn\_macmillan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/auryn_macmillan/32/56633_2.png) [@auryn\_macmillan](https://meta.discourse.org/u/auryn_macmillan)
#### Post date: [13 september 2016 om 22:32 UTC](https://meta.discourse.org/t/criteria-to-ensure-discourse-instance-will-work-as-a-chrome-webapp-on-mobile/50112/11 "2016-09-13T22:32:13Z")

</div>

all the fields?

 ![](https://global.discourse-cdn.com/meta/original/3X/1/5/157ac7f3f55310db25a3d3ad9db44ea44d04c679.jpg)

---

<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: [13 september 2016 om 22:36 UTC](https://meta.discourse.org/t/criteria-to-ensure-discourse-instance-will-work-as-a-chrome-webapp-on-mobile/50112/12 "2016-09-13T22:36:15Z")

</div>

There is a field called `gcm_sender_id` somewhere.

However, this should not happen anyway. This may fix it (still need some testing):

[https://github.com/discourse/discourse-push-notifications/pull/7](https://github.com/discourse/discourse-push-notifications/pull/7)

---

<div class="post-metadata">

### Author: ![auryn\_macmillan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/auryn_macmillan/32/56633_2.png) [@auryn\_macmillan](https://meta.discourse.org/u/auryn_macmillan)
#### Post date: [13 september 2016 om 22:42 UTC](https://meta.discourse.org/t/criteria-to-ensure-discourse-instance-will-work-as-a-chrome-webapp-on-mobile/50112/13 "2016-09-13T22:42:01Z")

</div>

disabling the plugin fixed it for [https://forum.ether.camp](https://forum.ether.camp).

I’ll just disable it on both for now, and re-enable it once it’s been fixed.

Thanks heaps for the help.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [8 juni 2024 om 12:45 UTC](https://meta.discourse.org/t/criteria-to-ensure-discourse-instance-will-work-as-a-chrome-webapp-on-mobile/50112/14 "2024-06-08T12:45:21Z")

</div>

This topic was automatically closed after 2824 days. New replies are no longer allowed.
