DEV Community

loading...
Cover image for PWA - Why should you use it and not use it?

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

Tharun Shiv on May 10, 2020

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 t...
Collapse
pawelmiczka profile image
Paweł Miczka

I wrote many of PWAs just for testing and here's my thoughts:

  1. I kinda don't like update mechanism. By default after updating app on server you have to wait day or two to get new version. I heard that you can configure it to don't cache your app but then it doesn't make sense from what website is.
  2. It drains battery much quicker since it just runs Chrome or any other browser under the hood.
  3. Performance is sometimes just bad

.. and since there is something like Flutter or SwiftUI for iOS devices i still prefer this way. Meybe something will change later - hope so because I am more JavaScript developer than Dart or Swift :D

Collapse
embiem profile image
Martin Beierling-Mutz

There's a way around the update issue you mention. You can basically load the new version in the background and then refresh to use the new version. Here's another good article about it: medium.com/progressive-web-apps/pw...

Collapse
developertharun profile image
Tharun Shiv Author

Excellent article! Thanks for sharing.. 🙂

Collapse
developertharun profile image
Tharun Shiv Author

Great points Pawel, thanks for letting us know about your experience 🙂

Collapse
danyw3b profile image
DanyW3b

Very interesting considerations, Pawel! Thanks for sharing them.

Collapse
onderceylan profile image
Önder Ceylan 🌚

Hey Tharun, thanks for the post! I just want to add here that it’s possible to customize splash screens on iOS. You might want to check out pwa-asset-generator - npmjs.com/package/pwa-asset-generator.

Collapse
developertharun profile image
Tharun Shiv Author

That's great! Thanks for Sharing it Onder, will try using it someday. 🙂 Also feel free to share if any such generators are available for Android and web. Thanks

Collapse
onderceylan profile image
Önder Ceylan 🌚

Sure! This is library you can use while developing PWAs to generate icons and splash screens for all platforms.

Thread Thread
developertharun profile image
Tharun Shiv Author

Oh that would be very helpful. Thanks once again. 🙂

Thread Thread
developertharun profile image
Tharun Shiv Author

By the way, have you worked on any PWAs that are publicly accessible? If yes, please share the website link, we could check it out. 🙂

Collapse
flyinliamryan profile image
flyinliamryan

No push notification on IOS.

Collapse
developertharun profile image
Tharun Shiv Author

Ah I see, that's another con then. Thanks for contributing 🙂

Collapse
chandrika56 profile image
Jaya chandrika reddy

Is there any way in which we can deploy PWA onto the Play Store?

Collapse
developertharun profile image
Tharun Shiv Author

Yes, there is. I will very soon be writing about TWA - Trusted Web Activities - which are not same as the usual Hybrid apps that we used to create, but is something above that. You can use your Progressive web app to create a TWA and you're good to go and can upload the APK to the play store.

I Will be writing about this soon, thank you 😊

Collapse
chandrika56 profile image
Jaya chandrika reddy

Okay thank you 🎉

Collapse
daviddalbusco profile image
David Dal Busco

PWABuilder ease the process. With its help, you can just provide your PWA URL and then get the package to upload and a README or what's to do.

I used it recently to bring DeckDeckGo to Google Play, was really handy and straightforward.

Collapse
developertharun profile image
Tharun Shiv Author

I've come across this, but haven't used it. Thanks for contributing David. 🙂

Collapse
assertnotnull profile image
Patrice Gauthier
  1. No download store presence

I find it weird that's one con for one of the reasons that PWA was created is to avoid the long flow of going to your favourite mobile OS store, clicking install, wait for it to download then be able to use it. People are annoyed by the growing consumption of disk usage relative to the benefit of using the app, the install flow and getting notifications to update an app. It also solves the problem of downloading a big amount of MBs on a bad network and could reduce your roaming charges (where if I'm not opening the app it's not updated). Also for users, installing an app could mean giving privilege access to the phone so they have to inspect the app privileges for anything odd (miners, unneeded GPS).

This impact of app install was significant.
In 2015 for Google, 69% users abandoned the page when they saw an interstitial to download the app:
twitter.com/jaffathecake/status/62...

Still in 2019:
forbes.com/sites/victoriacollins/2...

So I would add in Pros: higher user retention of the app/website.

Collapse
developertharun profile image
Tharun Shiv Author

That's a good perspective 🙂 thanks for contributing

Collapse
q2apro profile image
q2apro

I have tried to bring my forum to the PWA world. However, I realized that all the content got cached and new activities on questions were not reflected. Even so the server was available all time. So from my POV, the main disadvantage is the cache handling. And at that time (last year) I could not find helpful information about how to fix this.

Collapse
developertharun profile image
Tharun Shiv Author

Ah.. that's a great experience and a point to think about.. so it isn't feasible unless we know the appropriate functions to use. Good point 🙂🔥

Collapse
c0d3b0t profile image
Senik Hakobyan • Edited

Having SSL and secure connection is not a disadvantage. :)
I would even say that it is a big advantage for user that no one can implement insecure push notifications that may include a sensitive information.

Collapse
allison profile image
Allison Walker

Yes, this is true. And, actually Google started prioritizing https URLs over http a few years ago, so even non-PWA sites are better off switching.

Collapse
developertharun profile image
Tharun Shiv Author

That's a good perspective. And also, given the easy ways in which we can convert our hosted site from http to https, yeah what you tell makes sense.
Thank you for contributing 🙂

Collapse
bayuangora profile image
Bayu Angora

I like your sticky notes apps.

Collapse
developertharun profile image
Tharun Shiv Author

Thank you 😊

Collapse
yanivsuzana profile image
yanivsuzana • Edited

Hi good article on "Not easy for a beginner to get started"
I know of a good site that makes it easy for developers
And generates code for any type of website
Also Good for a third-party site like wix website
wappaa.com

Collapse
venkat121998 profile image
venkat anirudh

Great article! Where should I start learning PWA?

Collapse
developertharun profile image
Tharun Shiv Author

Check out theNetNinja playlist on YouTube 🙂

Collapse
fisherozzo profile image
Mimmo

+1, thats a great channel. Thanks for your tips Tharun

Thread Thread
developertharun profile image
Tharun Shiv Author • Edited

Thanks a lot Daniacco 🙂 Yes , he is one of my favourites🙂

Collapse
necrogami profile image
Anton C. Swartz IV

One complaint, can you at the start name what PWA means for those that don't know. No where in the article do you break down what PWA stands for

Collapse
developertharun profile image
Tharun Shiv Author

Thanks for the suggestion, will add it right away. 🙂

Collapse
kayavail profile image
Olukayode OJO

Check this out available.ng

It uses PWA. Not sure about service worker

Collapse
jsifontez profile image
Juan Sifontez

Thanks for this post Tharun, is amazing

Collapse
developertharun profile image
Tharun Shiv Author

Thank you.. glad you liked it 🙂

Collapse
rush profile image
Aarush Bhat

You can now post pwa on play store directly!

Collapse
developertharun profile image
Tharun Shiv Author

Oh is it, how is that?

Collapse
amilamen profile image
Ezéchiel Amen AGBLA

Have you tried IONIC + Capacitor for build PWA ?

Collapse
developertharun profile image
Tharun Shiv Author

No... Will check it out 🙂

Collapse
praveenreddy1798 profile image
praveenreddy1798

Great post, didn't know this much about PWA, now interested to Learn it.

Collapse
developertharun profile image
Tharun Shiv Author

Glad it helped