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


(Auryn Macmillan) #1

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).


(Rafael dos Santos Silva) #2

As said here you need https. Can you share the links?


(Auryn Macmillan) #3

Both are using https I believe:


https://forum.ether.camp/


(Rafael dos Santos Silva) #4

Both manifest.json is somehow broken. How they did it is beyond me.

Maybe they forgot to set a required field…


(Auryn Macmillan) #5

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


(Rafael dos Santos Silva) #6

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


(Auryn Macmillan) #7

I’m the admin for both.

apple_touch_icon_url for https://forum.gnosis.pm is:

mobile_logo_url for https://forum.gnosis.pm is:


(Rafael dos Santos Silva) #8

Hahaha, you should’ve mentioned it earlier :stuck_out_tongue:.

The only SiteSettings that we use are title and apple_touch_icon_url.

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


(Auryn Macmillan) #9

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


(Rafael dos Santos Silva) #10

Hoho, found it!

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


(Auryn Macmillan) #11

all the fields?


(Rafael dos Santos Silva) #12

There is a field called gcm_sender_id somewhere.

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


(Auryn Macmillan) #13

disabling the plugin fixed it for 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.