googlecodelabs / your-first-pwapp

Code associated with Your First Progressive Web App codelab
https://g.co/codelabs/pwa
Apache License 2.0
638 stars 555 forks source link

This does not work on my iphone as is from a real server #129

Closed kdavis45 closed 5 years ago

kdavis45 commented 6 years ago

Had to make a couple adjustments. First I had to add '.' or './' to pretty much every path in both manifest.jason and servicesworker.js Also, manifest.jason needed to be in the filesToCache list for it to work correctly offline

var filesToCache = [ './', './index.html', './favicon.ico', './manifest.json', './scripts/app.js', './styles/inline.css', './images/clear.png', './images/cloudy-scattered-showers.png', './images/cloudy.png', './images/fog.png', './images/ic_add_white_24px.svg', './images/ic_refresh_white_24px.svg', './images/partly-cloudy.png', './images/rain.png', './images/scattered-showers.png', './images/sleet.png', './images/snow.png', './images/thunderstorm.png', './images/wind.png' ];

petele commented 5 years ago

Hi!

Thanks for the feedback. I've rewritten the codelab from scratch and believe I have fixed this issue. The code has been updated, I'm just waiting for the guide to go live. In the meantime, I've deployed the codelab at https://developers.google.com/web/fundamentals/codelabs/your-first-pwapp/.

If you find any issues with the new codelab, please let us know!

Thanks!