PWA support
-
wrote on Nov 28, 2023, 12:11 AM last edited by
Does the Cloudron installation of HumHub support PWA? If so, how / where can it be activated?
-
Does the Cloudron installation of HumHub support PWA? If so, how / where can it be activated?
@ccfu AFAIK, this is the default per https://docs.humhub.org/docs/admin/config-options/#web
-
In my instance I configured nothing special and it works by default. BTW thanks for the hint because I discovered only now
-
wrote on Nov 28, 2023, 10:40 AM last edited by
I also understood that it should work by default and I have just checked and see that the service worker is in fact both registered and active. Strangely I don't get the option to "install app" on my phone though, which is what made me wonder.
-
I also understood that it should work by default and I have just checked and see that the service worker is in fact both registered and active. Strangely I don't get the option to "install app" on my phone though, which is what made me wonder.
wrote on Nov 28, 2023, 11:14 AM last edited by jdaviescoates Nov 28, 2023, 11:26 AM@ccfu said in PWA support:
Strangely I don't get the option to "install app" on my phone though
Even when you look in the menu?
In Firefox on Android I see this when using https://vive.transitiontogether.org.uk/ which is an instance of HumHub managed by @Sam_uk :
Edit: although, actually, nothing seems to happen when I choose Install from the menu
Update: it did work when using the Chromium-based default /e/ OS browser
-
wrote on Nov 28, 2023, 11:32 AM last edited by ccfu Nov 28, 2023, 11:37 AM
@jdaviescoates I have only tried it with the Chrome browser on Android and only see Add to Home screen as an option in the menu. I'll try another browser.
Edit: It works with Chrome and https://vive.transitiontogether.org.uk/ . I am now thinking that it might be a cache issue because a different site was using the domain before the HumHub instance was installed.
Thanks for confirming that it should work as expected.
-
wrote on Nov 28, 2023, 9:28 PM last edited by
I tried the Firefox browser on my phone and the situation is the same. I really cannot understand why this isn't working. The service worker is active but the browser is somehow getting the information that no PWA is configured. Maybe I'll just try reinstalling, though I didn't confiugure anything on setup that could have changed any defaults.
-
wrote on Nov 28, 2023, 10:46 PM last edited by
perhaps @Sam_uk did something to make it work?
-
@ccfu I installed a fresh instance at https://humhub.demo.cloudron.io . I see the Install menu in my Android Firefox. I also checked our internal HumHub instance and that also shows Install menu.
-
@ccfu I installed a fresh instance at https://humhub.demo.cloudron.io . I see the Install menu in my Android Firefox. I also checked our internal HumHub instance and that also shows Install menu.
wrote on Nov 29, 2023, 1:20 PM last edited by@girish said in PWA support:
I see the Install menu in my Android Firefox.
But presumably it doesn't actually work?
-
@girish said in PWA support:
I see the Install menu in my Android Firefox.
But presumably it doesn't actually work?
@jdaviescoates said in PWA support:
But presumably it doesn't actually work?
I went back and checked. It installs an icon of humhub with firefox icon at the bottom corner in the home screen. When clicked it opens a full page humhub (i.e without browser's navbar etc).
-
@jdaviescoates said in PWA support:
But presumably it doesn't actually work?
I went back and checked. It installs an icon of humhub with firefox icon at the bottom corner in the home screen. When clicked it opens a full page humhub (i.e without browser's navbar etc).
wrote on Nov 29, 2023, 2:00 PM last edited by@girish said in PWA support:
It installs an icon of humhub with firefox icon at the bottom corner in the home screen. When clicked it opens a full page humhub (i.e without browser's navbar etc).
Interesting. Firefox didn't work for me at all on https://vive.transitiontogether.org.uk/ but it worked fine on Chrome.
-
@girish said in PWA support:
It installs an icon of humhub with firefox icon at the bottom corner in the home screen. When clicked it opens a full page humhub (i.e without browser's navbar etc).
Interesting. Firefox didn't work for me at all on https://vive.transitiontogether.org.uk/ but it worked fine on Chrome.
@jdaviescoates For me, your site worked as well. I hope we are talking of the same thing, so here's some screenshots:
Which when clicked, shows the app:
I am on Firefox 120.0 / Android 11 if that matters...
-
wrote on Nov 29, 2023, 5:00 PM last edited by ccfu Nov 29, 2023, 5:01 PM
Yes, that is what Chrome calls "Add to Homescreen". I also get that on my instance, but it is not actually installing as a PWA. As with @jdaviescoates on https://vive.transitiontogether.org.uk/ the install button on Chrome installs HumHub as a web app, on firefox it wants to add it as a shortcut. It will appear full screen but runs in the browser that created the shortcut (hence the Firefox logo on the icon). Maybe this is what humHub is supposed to do then and Firefox just doesn't support the configuration.
-
Yes, that is what Chrome calls "Add to Homescreen". I also get that on my instance, but it is not actually installing as a PWA. As with @jdaviescoates on https://vive.transitiontogether.org.uk/ the install button on Chrome installs HumHub as a web app, on firefox it wants to add it as a shortcut. It will appear full screen but runs in the browser that created the shortcut (hence the Firefox logo on the icon). Maybe this is what humHub is supposed to do then and Firefox just doesn't support the configuration.
wrote on Nov 29, 2023, 9:32 PM last edited by@ccfu said in PWA support:
on firefox it wants to add it as a shortcut. It will appear full screen but runs in the browser that created the shortcut (hence the Firefox logo on the icon). Maybe this is what humHub is supposed to do then and Firefox just doesn't support the configuration.
Even that doesn't happen for me with Firefox
But yeah I think maybe that's just how it is
-
-
wrote on Dec 12, 2023, 11:56 AM last edited by
@jdaviescoates @girish
Just to follow up on this: To test I installed humhub in a LAMP app and the PWA app works as intended in both Chrome and Firefox so it must be something to with the way Cloudron installs the app.