Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
May 10, 2020 04:22 pm GMT

PWA - Why should you use it and not use it?

In the current world of technologies, one of the technologies that is currently booming is the PWA. It was introduced by Google in 2015 and since then plenty of websites have adopted this technology. And the result obtained through this are also marvelous.

What am I talking about?

PWA is a web app, which can be displayed in the form of a regular App on a phone ( platform-independent) and also works like a regular responsive website on the internet.

What does it use?

It consists of Javascript mainly and uses Service Workers, in which the server of the PWA is saved in the users web browser, and from time to time new feeds are loaded into it. This is the main reason of the speed of a PWA.

The Advantages of building a PWA:

1. Responsive Layout
Yes, you have to build a Responsive Website. This would surely attract a lot of mobile users to your website. Today Most of the market is from the mobile users. So you got this checked.

2. Available in offline Mode
Oh Yeah. Once you use the PWA website on your browser, the cache of the website will automatically save in your web browser. Which means that you can later easily view the webpage in the Offline mode.

3. Add to the Home Screen
Once you open a PWA website, you will get a prompt to add it to your home screen. This makes it easy for the users, and even the website traffic will increase

4. Acts like a Mobile App
You heard it right, from then onwards when you open a PWA it will act like a mobile App. Opens without the URL bar and other Tab options. Gets installed on the phone ( without harmful access to the Phones hardware and software ).

5. Push Notifications
Sending notifications to the user phones even when the website is closed. You can do that??? Yup , totally possible.

6. Very less memory space
I used the very on purpose. Imagine a 10MB Play Store app working at 250kb on your phone. Im serious.

7. Cross-Platform
Develop a PWA compatible web app and use it on any phone which supports Chrome Browser, on any desktop which has a browser. Yes! Yes! YESS!

Every coin has a flip side to it

The Disadvantages

1. There is a catch with the push notifications
To enjoy the push notifications and in prompt builds, the website needs to use the secured TL connection.

2. Not easy for a beginner to get started
If you are a developer and you want to develop PWAs then you have to have the knowledge of HTML, CSS, Javascript, ES6 and a minimal understanding of the related technologies which you may encounter on your way. Though there are easy shortcuts to get started, ( Now that is for another blog post )

3. No download store presence
You cannot have a direct pwa at the Play Store or the App store.

4. Cannot modify the splash screen that easily
The splash screen that appears when you open the PWA is not customizable out of the box.

Also note that your website must be served through https which means you need an SSL certified connection.

Conclusion

  • PWAs are always going to be great technology. It has just begun its journey and it has a huge way to go.
  • It is now being served as a cheaper option than a native app, where you need an app to have minimal animation and native app support.
  • New Inventions are going to be seen. Until then try to gain the PWA knowledge.

Example

My recent PWA: https://bit.ly/stick-it-notes
Will get back to y'all on another post as to how I built it without coding any PWA part

You might be interested in,

Written by Tharun, originally written on https://tharunshiv.com

.ltag__user__id__378811 .follow-action-button { background-color: #1E90FF !important; color: #fdf9f3 !important; border-color: #1E90FF !important; }
tharunshiv image

Original Link: https://dev.to/tharunshiv/pwa-why-should-you-use-it-and-not-use-it-447

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To