The case for progressive web apps

We live in exponential times, and change is happening faster than ever before. We should be prepared for the changes as they will happen faster and more often.

The continuous innovations that have an impact on people follow one another, with an increasingly clear focus on experience and performance.?Let's talk about some of the biggest challenges web apps and native mobile apps are facing today -

  1. Slow loading: Do you know how long a user waits to click the “Close X” button if a website is taking time to load ? Three seconds! 53% of users leave a website if it is too slow. The average load time for sites is 19 seconds on a 3G connection and 14 seconds on a 4G connection.
  2. User engagement discrepancy: Users spend most of their time in native apps, most of the users are not actively engaged on web. However, users are spending 80% of their time on only their top three native apps. This is despite the fact that mobile web reach is 3 times more than the native apps. Most users are also relucant to download a native apps for minor purpose.
  3. Internet speed: You may not be aware of this depending upon where you live but most of the world is still using 2G and slow 3G. This is a major roadblock for the expansion of web.

Mobile web browsing is a trend that’s here to stay.?Mobile web traffic currently makes up 52.6% of global web traffic, which is a 20% increase from five years ago. Most people browse their phone for their daily needs. Whether it be online shopping, looking up directions, or using social media. To help online visibility, it’s important to optimize for mobile as much as possible. There are many ways of doing this. A great option to reach more people is through a Progressive Web App (PWA).?

Progressive Web Apps (PWAs) are today considered the most powerful trend in mobile web development. The technology behind PWA was created by Google and it quickly gained momentum and is now hailed as the future of mobile web development.

What is a PWA ?

PWA is a website that looks and behaves just like a native mobile app. Users can add it to the main screen of their smartphones. PWAs can send push notifications, access the hardware of the mobile device, and even work offline or in an unstable connection with stored cache. Unlike traditional apps, progressive web apps are a hybrid between regular web pages and mobile applications. The term “progressive” refers to the fact that they introduce new features and, from the user experience’s point of view, they are initially perceived as normal websites but progressively behave more like mobile apps, among other things multiplatform.

There are multiple reasons for using a progressive web app, but here are some of the top capabilities it provides:

  1. Intuitive user experience: PWAs feel and behave like native apps as they can be "installed" on mobile device. It does not require App store or playstore listing. They sit in a user’s home screen, send push notifications like native apps, and have access to a device’s functionalities like native apps. The experience feels seamless and integrated.
  2. Lightning Quick: From the moment a user downloads an app to the moment they start interacting with it, everything happens really fast. Because you can cache the data, it is extremely fast to start the app again even without hitting the network.
  3. Reduced Network Dependency: With the help of service workers, we can reliably perform operations even when the network is not available.
  4. More engagement: Since we can send notifications to a user, we can really drive the engagement up by keeping the user notified and engaged with the app.

Wait... How is this even possible to do with web apps?

The new features of modern browsers that allow PWAs to offer these features are “manifest” and “service workers”.

What exactly is a service worker?

It real key to the advanced experiences that a PWA can offer. A service worker is a script that the browser runs in the background, separated from a web page, to use functions that do not require a web page or user interaction.

Today, SWs already include features such as push notifications and background synchronization. In the future, they will support functions such as periodic synchronization or geofencing. The main function is the ability to intercept and manage network requests, including programmatic management of a cache of responses. It is an API that supports offline experiences by giving developers complete control of the experience.

Manifest

It is a simple JSON file that defines the basic parameters of PWA, to control how the app should appear to the user and define its appearance at launch: icons, other basic features such as colors, fonts, screen orientation, and the possibility of being installed on the home screen.

Note: In order to be a PWA, the web application must be served over a secure network.?

What Does it Take to Migrate a Website to a PWA?

Since progressive web apps work as a website, make sure you have a well-designed website to begin with. The structure and content must be accurate and up to date. Though you can always make changes, it is a best practice to have your site ready for website migration.

Progressive web apps aren’t code-intensive, but they still require a working knowledge of common languages, like HTML, CSS, and JavaScript.

Why are Businesses moving to Progressive Web Apps?

Let us consider this scenario where a client wants to launch his/her E-Commerce platform to sell products online. What are things the client will need to reach out to the customers so that the customers can order online?

  • Website (Responsive), Android App, IOS App

The cost to develop the app for each separate platform adds to the expenditure. Also, adding to it are the fees for publishing the apps to the platforms like the Android Play store and IOS App Store. Thus, this increases the cost to develop as well as the time before the application is open to customers. There is a better option available with the client to move to the Progressive Web Apps. They can act as a website and also as native apps. This method reduces the overall cost and time of development. Both, Native & PWA their own merits as well as demerits. The decision mainly depends on what kind of features you require in your application. For example, PWA may be easier and simpler to install but installing from app store guarantees that the app is free of malware and any insecure code.?

PWA’s are beneficial for a developer, the business and they do not change much of the user experience for the user. From visiting the site, installation prompt to installation takes approximately less than 10 seconds.

Developers need to develop only one codebase. Thus it decreases the cost improves the quality of the end product. No problems with app store integration. There are various guidelines to be followed while publishing your app on the App Store or the PlayStore. But with PWA you don’t need to worry about it and make your app live by just hosting on the server. Download Size is also very less compared to the Native App.

Service workers update the content as soon as the app owner deploys it to the server silently without even the user knowing that it has updated. In Native apps, you need to update manually whenever there are any changes in the app.

It can run on any device which has a browser.

If we consider SEO, Search Engines index PWA’s in more detail compared to native apps.

What are the most used technologies for PWA?

  1. React: A powerful JavaScript library for building dynamic and modern user interfaces
  2. Polymer: A combination of components, tools and models designed to create PWA
  3. Angular: A framework for creating dynamic web applications that uses Typescript for development.
  4. Ionic: A JavaScript framework for creating powerful applications for multiple platforms using a basic code
  5. Accelerated Mobile Pages (AMP): An open-source project to improve the performance of web pages.
  6. Svelte: Last but not the least, svelte remains my top choice for developing PWA due to performance benefits.

Conclusion?

So, Is the market for Native apps soon going to depreciate??No person can predict the future, and it is uncertain what it may bring for us. Looking at the tech giants like Google, Twitter, Linked In and many others moving towards the Progressive Web Apps approach, the future of PWA seems promising.









Amardeep Singh

Technical Lead - HSBC | Javascript | React

3 å¹´

This is a great... ??

要查看或添加评论,请登录

Talvinder Singh的更多文章

  • Improving Code Quality with SonarQube

    Improving Code Quality with SonarQube

    In the ever-evolving landscape of software development, code quality stands as an immutable pillar. As projects become…

  • Survival of the Fittest in the Age of Digital Transformation

    Survival of the Fittest in the Age of Digital Transformation

    It's now not about the big beating the small, but the fast beating the slow. Digital Transformation in one word…

    1 条评论
  • Machine Leaning isn't a buzzword anymore. It's here to stay

    Machine Leaning isn't a buzzword anymore. It's here to stay

    Whether you realize it or not, ML is one of the biggest technology trends. It is increasingly touching more aspects of…

  • Zero UI and our screen-less future

    Zero UI and our screen-less future

    Zero UI focuses on an interface that cannot be clicked or tapped. It uses much more natural interfaces such as voice…

  • Web 3.0 and Blockchain

    Web 3.0 and Blockchain

    The term Web 3.0 has been buzzing around for some time now, but what exactly is it? Looking at the history of the…

  • How does the Global Positioning System work ?

    How does the Global Positioning System work ?

    The Global Positioning System (GPS) network we all use is called Navstar and is paid for and operated by the US…

  • Parallel Universe ? Yes Multiverse Exists

    Parallel Universe ? Yes Multiverse Exists

    The universe as we know it originated in a great explosion that we call the big bang. For nearly a century cosmologists…

    1 条评论
  • Interactive Resume - Amazon Style

    Interactive Resume - Amazon Style

    Check Interactive Resume

  • Is React Killing Angular & Jquery ?

    Is React Killing Angular & Jquery ?

    There are a few basic tenets to keep in mind that may help you build a good React application:Your UI should be a…

  • PHP 7 is here: Have a Look at its New Features

    PHP 7 is here: Have a Look at its New Features

    PHP 7 was released on December 3rd, 2015 and has a lot of new features. Php will continue to dominate in 2016.

社区洞察