How can I turn a React application into a PWA?

I am currently using a React application with Vite and I want to turn it into a PWA by implementing a customized popup for users to download the application. I have attempted a few solutions, but the service worker is not registering and I am only able to access the PWA on desktop and not mobile devices. I am using a vite-plugin-pwa and need assistance in resolving this issue. Can anyone help me sort this out?
6 Replies
Jochem
Jochem15mo ago
you'll have to post a lot more info. code, error messages, things you've tried to fix those error messages, that kind of stuff.
Kiran
KiranOP15mo ago
Hi Jochem sorry for not giving more info I'll be sharing more info on it.
Kiran
KiranOP15mo ago
This is how i tried to build registering the service worker & before prompt in App.jsx and in vite config made the workbox cache the file
Kiran
KiranOP15mo ago
@Jochem Could you please check this and correct any errors and give the possible way to make the pwa?
Jochem
Jochem15mo ago
Sorry, not really my expertise. Just trying to get more info for others that might have an answer
Kiran
KiranOP15mo ago
This sounds good to me. Thank you for your help!
Want results from more Discord servers?
Add your server