Ios in offline mode is not working #71
Replies: 1 comment
-
@mlyeung001 this is too vague for me to know what's exactly your problem. Having read between the lines and made some assumptions, I'm guessing that this is simply because your page wasn't cached. The default behaviour for I don't exactly know what your issue is, so I can't say for sure. Then again, Apple is notoriously shitty to PWAs, so sometimes things just don't work out. |
Beta Was this translation helpful? Give feedback.
-
I follow the guide to deploy a PWA in my app. I tried the PWA in android, ios and chrome in desktop. Android and chrome are working in offline, but ios is not wokring in offline. Why?
I am using ios 17 for the test.
here is my code
In next.config.js
const withSerwist = require('@serwist/next').default({ swSrc: 'src/pwa/sw.ts', swDest: 'public/sw.js', reloadOnOnline: true }) module.exports = withSerwist({ ... });
In src/pwa/sw.ts,
Beta Was this translation helpful? Give feedback.
All reactions