RinteRface / shinyMobile

shiny API for Framework7 (IOS/android)
https://shinymobile.rinterface.com
405 stars 74 forks source link

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

Open alexW335 opened 2 months ago

alexW335 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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