PWA is a web term that means (progressive web apps) PWA is a special kind of website that you can use over the internet on any device you want, make sure the browser supports the PWA. Maybe some brow...
Gurpreet Kait
Author
PWA is a web term that means (progressive web apps) PWA is a special kind of website that you can use over the internet on any device you want, make sure the browser supports the PWA. Maybe some browsers don't understand them but on Chrome, Firefox, and Safari you can use the PWA.
So, the cool thing about PWA you don't need to go to any app store or Play store to download it. You just have to go to the website and you can easily access this on your home screen.
So, in simple words, a PWA is a special website that you can put on your home screen and use like an app. It's kind of like magic! 😊🌟
In the above image, you can see the download button first icon in the row on the right side. That means the website is a PWA you can even install it on your computer as an app and on your mobile.
Building A Simple PWA Website
If you are ready for a practical experience let's open your code editor and create these files.
Now, we need manifest.json to make our application a PWA. Install this package PWA-asset-generator which will also generate the different sizes of logo for your app and manifest.json as well.
And the below script you have to add to your index.html file or whatever main layout file you are using default.
<script>if ('serviceWorker'in navigator) {
navigator.serviceWorker.register('service-worker.js')
.then((reg) => {
console.log('Service Worker registered with scope:', reg.scope);
})
.catch((error) => {
console.error('Service Worker registration failed:', error);
});
}
</script>
//Before your body tag
</body>
Conclusion
So, In conclusion, PWA is most likely an all-in-one package for the web that doesn't require any kind of different distributions or bundling we can easily have an app-like experience by installing it.
And more you will get to know when you'll be using it. Thanks for reading.