PWA support
-
@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
-
@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.
-
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.
-
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.
-
@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).
-
@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:
First, I add like:
Then, it appears on desktop:
Which when clicked, shows the app:
I am on Firefox 120.0 / Android 11 if that matters...
-
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.
-
@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
-
@ccfu You explained a bit here - https://forum.cloudron.io/post/78468 but what exactly should I be looking for to test PWA? Will it look different than the screenshots I posted earlier?
-
@girish
When PWA is working as intented the menu gives you the option to install as an app (shown here in Chrome):It is then added to the app drawer and no longer runs in the browser. If you open the site in the browser the menu gives you the option to open in the app (shown here in Firefox):
-
-
@ccfu said in PWA support:
It is then added to the app drawer and no longer runs in the browser.
So, this is how it behaves for me already. Except, I don't get 'Install App', I get 'Install' . When I launch the app from the app from my homescreen , it is not run as part of browser, it is a separate thing. It also gets the icon of our humhub instance in the "apps" overview when running.
How does the icon look on your homescreen with firefox?
With chrome, I get
-
@ccfu are you able to install it on the demo so I can try to understand what is different ? https://my.demo.cloudron.io (username / password: cloudron)