Does or will Hubspot CMS support Progressive Web Apps (PWA)?
SOLVE
Hello,
We are looking at some Google speed suggestions and for mobile users they recommend PWAs. There are pros and cons to this of course in terms of presenting updated information to mobile users but I don't want to get into that conversation.
Does the Hubspot CMS allow any automation of this?
Mozilla.org has a tutorial on this here but at the moment I am not sure I can do it with a Hubspot site due to the service worker requirement.
Any help or comments appreciated. Thank you in advance.
Great question regarding PWAs! I do not believe the service worker placement should be an issue now as you can employ the proxy feature in the URL redirects settings.
I believe @JAbella was working on this a while back. I wonder if she had any luck setting one up and maybe have a little insight?
Great question regarding PWAs! I do not believe the service worker placement should be an issue now as you can employ the proxy feature in the URL redirects settings.
I believe @JAbella was working on this a while back. I wonder if she had any luck setting one up and maybe have a little insight?
Does or will Hubspot CMS support Progressive Web Apps (PWA)?
SOLVE
Installing a worker is not impossible, but can files be added to the cache? Generally, one should provide index.html, index.css, index.js, and this way the page can be launched without the internet. However, in HubSpot, it's not clear how to specify such a file because there seems to be no way to do so. Am I correct in understanding that it's not possible to run a page offline on HubSpot?
Does or will Hubspot CMS support Progressive Web Apps (PWA)?
SOLVE
Please tell me please how to add the index.html of the page to the cache. HubSpot Support said that this is not possible. Could you help me to do that?
Does or will Hubspot CMS support Progressive Web Apps (PWA)?
SOLVE
I created a "HTML + HUBL" html file in the designer. I then created a normal site page using the html file as template. This page has this address: https://www.wieslab.se
I then added this file to the service worker among the other files (images, js, css etc) like this:
Feb 22, 202410:58 AM - edited Feb 22, 202411:23 AM
Member
Does or will Hubspot CMS support Progressive Web Apps (PWA)?
SOLVE
Thanks for your example! I see that this page working offline. However, I totally don't know why it's not working for me... I'm already sitting 8 hours to check that...
Does or will Hubspot CMS support Progressive Web Apps (PWA)?
SOLVE
I checked your page in Lighthouse (Chrome), and it says that no manifest file was fetched. I believe you have to add a manifest file to make your app installable and work offline.
I think you need to have the sw file point to https://www.andweekly.com/test132443-0 instead. In my case, the pwa is just a single page located at the top level of the domain.
Does or will Hubspot CMS support Progressive Web Apps (PWA)?
SOLVE
Hey Greg, thank you for all of your responses, I appreciate it!
I found the problem. I need to place serviceworker.js right after the domain andweekly.com/serviceworker.js but the problem is that when I keep files on the HubSpot, HubSpot add /hubfs/ between the domain and a file.
My last question to you is - how do you place serviceworker.js right after the domain? Outside HubSpot? I can't do it. I've tried to redirect but I received an error
Does or will Hubspot CMS support Progressive Web Apps (PWA)?
SOLVE
@GregSamsa did this PWA work for you? I can try to implement this in HubSpot CMS if anybody has guidelines on how this can be done on the general website. or any other CMS website.
Does or will Hubspot CMS support Progressive Web Apps (PWA)?
SOLVE
Yes! I created a folder in "Files" where I put the service worker, manifest, images etc. I then created a URL redirect to the service worker with the proxy setting to get the scope right.