HTML Service - PWA


HTML Service - PWA



Sorry for a noob question - as I've just started with web development half a year ago..



I need your help regarding setting my GAS app into a PWA. Is there such a possibility? I struggle to find any really helpful resources on how to create a service workers and manifest files to work correctly. It'd be extremely helpful for me to get trained on the topic.



Thanks.





Google Apps Script is not persistent server-side.
– tehhowch
Jun 30 at 1:00





@tehhowch could you specify? I'm quite new to the topic and if you could at least provide some docs or tuts It would help me very much. Is there any possibility to overcome limitations to change GAS web app to the PWA? Thanks!
– TheJungle
2 days ago





This is not a "find me tutorials" website. I'm merely commenting that there is no persistence of memory between calls to apps script - each hit to a webapp will spool a new instance.
– tehhowch
2 days ago





@tehhowch Got it! I've noticed there is no memory in GAS. My idea would be to capture the main index.html file and save it as offline-mode version. If that's not possible, a non-offline version of the app would be okay - just simply to make it load in a separate instance (not in browser window) and add an icon to Android homescreen (not a shortcut to website).
– TheJungle
2 days ago





1 Answer
1



Having a valid manifest.json will enable your application to add to home screen of Android, iOS - Safari only, Chrome - All desktop OS.



You can use this link to generate manifest.json for your application and keep in the root of your project and link it using index.html like below,





You can use Workbox to generate service worker for your application.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

Opening a url is failing in Swift

Export result set on Dbeaver to CSV