shinyMobile icon indicating copy to clipboard operation
shinyMobile copied to clipboard

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

Open alexW335 opened this issue 1 year ago • 4 comments

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.

alexW335 avatar Aug 17 '24 02:08 alexW335

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.

DivadNojnarg avatar Aug 19 '24 09:08 DivadNojnarg

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

alexW335 avatar Aug 20 '24 08:08 alexW335

@alexW335 did you manage to resolve it? Sitting with the same problem here.

johannesharmse avatar Feb 12 '25 00:02 johannesharmse

Sorry but no, unfortunately I abandoned it in the end

alexW335 avatar Feb 12 '25 04:02 alexW335