This was an excellent presentation - I directly migrated all functionality, excluding the installation of my manifest.json file directly from the presentation.
Following the video, and migrating to match, my manifest.json file won't download - it looks like it can't even be seen.
after that, I update my routes.rb to contain manifest.json as a route
get '/service-worker.js', to: 'service_workers/workers#index'
get '/manifest.json', to: 'service_workers/manifests#index'
And finally, I have, per your code, a directory named service_workers inside of views, with manifests/index.json.erb and workers/index.js.erb inside of it. Everything works perfectly, excluding the ability to see/download/install my PWA, because manifest.json isn't found.
Did I miss something? Do I need to do something else to get the manifest.json file to be seen/downloaded?
Hi, I have a web application using ActionCable and stimulus.js for real time update and push notification (thanks to your other episode). Do you know if there's any resource that can help me add these features to the PWA, please?
This works well on development environment. What about production environment with Webpacker? serviceworker-rails require sprockets for precompiling the js files for production. Can you provide some guidance on production environment, please?
☒ The episode doesn't use the serviceworker-rails gem for this episode. I'm actually using this technique from this episode on https://www.pingverse.com/ and it seems to work well.
Following the video, and migrating to match, my manifest.json file won't download - it looks like it can't even be seen.
In my applcation.html.haml file, I have
after that, I update my routes.rb to contain manifest.json as a route
And finally, I have, per your code, a directory named service_workers inside of views, with manifests/index.json.erb and workers/index.js.erb inside of it. Everything works perfectly, excluding the ability to see/download/install my PWA, because manifest.json isn't found.
Did I miss something? Do I need to do something else to get the manifest.json file to be seen/downloaded?
I have a web application using ActionCable and stimulus.js for real time update and push notification (thanks to your other episode). Do you know if there's any resource that can help me add these features to the PWA, please?
Thank you.
This works well on development environment. What about production environment with Webpacker? serviceworker-rails require sprockets for precompiling the js files for production. Can you provide some guidance on production environment, please?
Thanks