Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service worker and manifest not being appropriately moved for pwa with bundle_resources #268

Open
alexW335 opened this issue Aug 17, 2024 · 2 comments

Comments

@alexW335
Copy link

Hello, I'm trying to set up a skeleton shinymobile PWA which I can use to build future projects off of. I'm following the instructions in the README to set up my app as a PWA, but I can't seem to configure the app so that it's correctly serving manifest.webmanifest and service-worker.js. My understanding is that they're being served under /app/www/, but they should be a level higher. My app is being built with golem, and I used charpente to instantiate my PWA files.

Running the app shows 404s:
image

and the service worker and manifest files don't appear to be anywhere in the site sources:
image

My code is available at https://github.com/alexW335/healthdashpwa

I'd appreciate any feedback here - I think something might be wrong, but I also have very little experience in anything web so I may just be misunderstanding.

@DivadNojnarg
Copy link
Member

Hi,

I have a code example here (golem only): https://github.com/DivadNojnarg/golemPWA and another one with shinyMobile + golem: https://github.com/DivadNojnarg/shinyMobileTest.

@alexW335
Copy link
Author

Thanks for sharing those, however I actually have the same issue when running the apps in either of your repos that you linked. The service worker files don't appear to be properly located

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants