vite-pwa / vite-plugin-pwa

Zero-config PWA for Vite
https://vite-pwa-org.netlify.app/
MIT License
3.1k stars 204 forks source link

Added to the home screen, automatic updates are not functioning. #524

Open lioWeb1024 opened 1 year ago

lioWeb1024 commented 1 year ago

Device: iPhone, browser: Safari, added to the home screen with navigator.standalone set to true, auto-updates with vite-plugin-pwa not working. Have you encountered such a situation?

hikariNTU commented 1 year ago

If you close the app through task preview (is that how it called?) The next time you open the app, it will auto updated the content

Wonder if iOS never trigger the navigation or some required event when the apps is still alive in the background

userquin commented 1 year ago

@hikariNTU it is a problem with the user agent (Safari/iOS/macOS), we cannot do anything here

enkhchuluun commented 1 year ago

@lioWeb1024 I wonder how to get the PWA install work on iOS device? I've searched through the internet, what i only found is that user need to install manually? In that case, do i need to show some guidance modal? is there any best practice?

Thanks