DEV Community

Discussion on: Yummyplan - An app to plan meals for an entire week🍞📅

Collapse
 
jankapunkt profile image
Jan Küster

Would Love to Install it as pwa on my mobile

Collapse
 
thormeier profile image
Pascal Thormeier

Installing it as a PWA should work, at least from my tests 🤔 are you experiencing problems with that? Also, the app is only rudimentary optimized for phone screens and mostly works on tablets and desktops (more real estate for the week plan)

Collapse
 
jankapunkt profile image
Jan Küster

Installation is offered on ff mobile but it won't Open. I will cross check with my Tablet later

Thread Thread
 
thormeier profile image
Pascal Thormeier

Oh, that's a pity! The app doesn't do anything out of the ordinary Nuxt PWA module stuff, but perhaps the localStorage usage might be an issue. It does work when using Firefox itself, though, does it? Thank you so much for reporting!

Thread Thread
 
jankapunkt profile image
Jan Küster

I tried with Chrome on XUbuntu 64bit and found, that there is an error with the service worker and CSP:

fd02311.js:1 [Report Only] Refused to create a worker from 'https://yummyplan.github.io/sw.js' because it violates the following Content Security Policy directive: "worker-src 'none'".
sw.js:3 Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://cdn.jsdelivr.net/npm/workbox-cdn@5.1.4/workbox/workbox-sw.js' failed to load.
    at https://yummyplan.github.io/sw.js:3:1
(anonymous) @ sw.js:3
An unknown error occurred when fetching the script.
Enter fullscreen mode Exit fullscreen mode

I will open an issue on GitHub :-)

Thread Thread
 
thormeier profile image
Pascal Thormeier

Thank you! For everyone else experiencing this issue, please see: github.com/yummyplan/yummyplan.git...