<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abhishek Gupta on Medium]]></title>
        <description><![CDATA[Stories by Abhishek Gupta on Medium]]></description>
        <link>https://medium.com/@abhishek_gupta?source=rss-3c52d314a281------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kM3CscaAeQ0CBdZixLySFA.jpeg</url>
            <title>Stories by Abhishek Gupta on Medium</title>
            <link>https://medium.com/@abhishek_gupta?source=rss-3c52d314a281------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 05:25:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhishek_gupta/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Introduction to PWA]]></title>
            <link>https://medium.com/aeologic/introduction-to-pwa-5a3b00f181d8?source=rss-3c52d314a281------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a3b00f181d8</guid>
            <category><![CDATA[progressive-web-app]]></category>
            <category><![CDATA[web-app-development]]></category>
            <category><![CDATA[menifest]]></category>
            <category><![CDATA[service-worker]]></category>
            <category><![CDATA[pwa]]></category>
            <dc:creator><![CDATA[Abhishek Gupta]]></dc:creator>
            <pubDate>Sun, 21 Jun 2020 17:05:52 GMT</pubDate>
            <atom:updated>2020-06-21T17:05:52.953Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k_ks-HpqIREVQFSSsMqynQ.png" /></figure><p>A <strong>Progressive Web App</strong> is a website that functions just like a native app. It has all the functionality of a native app and still manages to deliver the usability of a website. It&#39;s a web app that provides app-like experience to the users without installing the app from the play store, apple store, or anywhere else. PWA has some great features to support offline experiences, background synchronization, and push notifications. This opens the door to functionality that previously required using a native application.</p><p>The term Progressive Web Apps was first coined by <strong>Frances Berriman</strong> and <strong>Alex Russell</strong> in 2015. They described applications that take advantage of new features supported by modern browsers, including service workers and web app manifests, and also let users upgrade web apps to progressive web applications regardless of their native operating system.</p><h3>Why PWA?</h3><p>So everyone has a question why PWA? Do we really need to convert our web app to PWA? or it&#39;s all just a hype and noise?</p><p>The answer is no, it’s not just a hype. The advantage and features of PWA are massive that is why in today&#39;s world PWA is gaining popularity and users are adopting it.</p><p>Following are the key features and characteristics of PWA:</p><ol><li><strong>Progressive: </strong>It works on any browser.</li><li><strong>App-like:</strong> Feel like a native app to the user with app-style interactions and navigation.</li><li><strong>Reliable: </strong>Loads instantly and never shows a website to be down, even under uncertain network conditions.</li><li><strong>Fast: </strong>PWAs load instantly, even in low internet connectivity or no internet.</li><li><strong>Engaging: </strong>Feel like a natural app on the device.</li><li><strong>Higher Reach: </strong>Progressive apps require no complicated installations. With only a few taps, users can enjoy the products.</li><li><strong>Installable: </strong>Easy to install without the hassle of an app store by adding it to the home screen from the browser.</li><li><strong>Up-to-date: </strong>They use a service worker update process to update the app in the background every time we have a new version of the app.</li><li><strong>Cost: </strong>The cost of building a PWA is less than that of a mobile application.</li><li><strong>Connectivity Independent: </strong>Service workers allow apps to work offline or on low-quality networks seamlessly.</li><li><strong>Easy discovery: </strong>Are identifiable as applications in search engines.</li><li><strong>Safe: </strong>Served via HTTPS to prevent snooping and ensure content hasn’t been tampered with.</li><li><strong>Responsive:</strong> Fit any form like a desktop, mobile, tablet, or any.</li></ol><h3>How are PWAs different from Mobile Apps?</h3><p>The main difference between PWAs and Mobile Apps is all mobile apps must be downloaded from any app store whereas PWAs are just web pages that can be installed from the browser by just adding the app to the screen. PWAs deliver an app-like experience, except users don’t need to download them. Many companies are using a PWA in place of a mobile app.</p><h3>PWA case studies</h3><ol><li><strong>Flipkart </strong>observes 3x increased in session time, 40% higher re-engagement, and 70% higher conversions.</li><li><strong>Twitter </strong>increased pages per session for Twitter by 65% and the number of tweets sent increased by 75%.</li><li><strong>Trivago</strong> reached 150% growth engagement and a 97% increase in conversion rate.</li><li><strong>Tinder</strong> loads 7.22 seconds faster, with longer sessions, swipes, and messages.</li><li><strong>AliExpress</strong> increased pages visited by 100% and time spent per session increased by 74%.</li><li><strong>OLX</strong> lowered their bounce rates by 80%.</li></ol><h3>Technical components of a PWA.</h3><p>PWA is characterized by a Service Worker file, a Web App Manifest, HTTPS.</p><h3><strong>1. Service workers</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*27woPttxQ1eWa3DfRIlQIQ.png" /><figcaption>Explaining how the service worker works in online and offline mode.</figcaption></figure><p>Service workers are scripts that run in the background of your application. It is a programmable proxy that lives client-side and sits between your browser and the rest of the Internet. Service workers are installed on the device from which the website is accessed and they allow you to control how network requests from your page are handled.</p><ul><li>Service workers facilitate its offline capability, push notifications, and resource caching.</li><li>Service workers only run on a secure network over HTTPS. Because service workers can intercept network requests and modify responses and anyone can easily manipulate the response and request of your web page.</li><li>Service workers remain idle when it&#39;s not in use and instantly get active when needed.</li></ul><h3>What a service worker can do?</h3><ul><li>It enables the application to control the network requests, it caches all the request to provide offline access and also to improve the performance by providing the files from the cache if available instead of getting it from the network again.</li><li>Service workers depend on two APIs <strong>Fetch </strong>( Getting the files from the network )<strong> </strong>and <strong>Cache </strong>( Getting the file from the persistent content storage )<strong> </strong>to make an app work in offline mode and in the low network also.</li><li>Caching resources will make the content load faster under most network conditions.</li></ul><h3>Service worker lifecycle</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xfr0AdI5RHyVoU3w1slsYw.png" /><figcaption>SW Lifecycle</figcaption></figure><p><strong>1. Registration<br></strong>In order to install a service worker, we need to register the service worker first in our main javascript file. In this registration process, it will tell the browser about the location of the service worker file in the application directory and to start installing the app in the background.</p><pre><strong>//app.js - Your main javascript file</strong><br>navigator.serviceWorker.register(‘/app/service-worker.js’, {<br> scope: &#39;/app&#39;<br>});</pre><p><strong>2. Installation<br></strong>After the registration process is done by the service worker it checks for the installation. It will install the service worker in your browser only if the browser finds a new service worker that is not installed previously by the browser. Also, it considers when there is a difference between the new service worker and the previously installed one.<br>We can include an install event listener in the service worker to perform some task when the service worker installs.</p><pre><strong>//service-worker.js - Service worker file</strong><br>// Listen for install event, set callback to perform some task after installation</pre><pre>self.addEventListener(&#39;install&#39;, function(event) {<br>    // Perform some task like caching the file or anything<br>});</pre><p><strong>3. Activation<br></strong>Once the service worker gets installed properly, it moved into the activation stage. In case if there is an open page that is using the previous service worker it stays in the waiting state. The new service worker will only be activated when there is no page still using the old service worker because at a time only one version of service worker can run at a given time.</p><pre><strong>//service-worker.js - Service worker file</strong></pre><pre>self.addEventListener(&#39;activate&#39;, function(event) {<br> // Perform some task like cleaning up outdated caches<strong><br></strong>});</pre><h3><strong>2. Web app manifest</strong></h3><p>A manifest is a JSON file associated with your application which controls what the user sees when launching from the home screen. Which includes splash screen, theme color, app name, and URL that has opened, standalone, or fullscreen option.<br>Web app manifests for PWAs have the following properties:</p><pre>//file name: <a href="https://kisan.aeologic.com/manifest.webmanifest">manifest.webmanifest</a></pre><pre>{<br>   &quot;short_name&quot;: &quot;App Name&quot;,<br>   &quot;name&quot;: &quot;App Name&quot;,<br>   &quot;icons&quot;: [<br>               {<br>                 &quot;src&quot;: &quot;favicon.ico&quot;,<br>                 &quot;sizes&quot;: &quot;192x192&quot;,<br>                 &quot;type&quot;: &quot;image/png&quot;<br>               },<br>               {<br>                 &quot;src&quot;: &quot;android-chrome-512x512.png&quot;,<br>                 &quot;sizes&quot;: &quot;512x512&quot;,<br>                 &quot;type&quot;: &quot;image/png&quot;<br>               }<br>            ],<br>  &quot;start_url&quot;: &quot;./index.html&quot;,<br>  &quot;display&quot;: &quot;standalone&quot;,<br>  &quot;theme_color&quot;: &quot;#1976d2&quot;,<br>  &quot;background_color&quot;: &quot;#fafafa&quot;<br>}</pre><p>To link the web manifest file add the below link in the head of your files.</p><pre>&lt;link rel=&quot;manifest&quot; href=&quot;<a href="https://kisan.aeologic.com/manifest.webmanifest">manifest.webmanifest</a>&quot;&gt;</pre><h3><strong>3. HTTPS</strong></h3><p>It’s very important that Progressive Web application must be served over a secure network. That’s why it’s a requirement for an application to be served with HTTPS so it can be considered a Progressive Web App.<br>Most of the features related to a PWA such as geolocation and even service workers are available only when the app has been loaded using a secure network.</p><h3><strong>Some advance features of PWA</strong></h3><ol><li><strong>Push notifications: </strong>Push Notifications is a way of allowing users to get timely updates from the sites and also allow you to effectively re-engage them. They work with service workers because of the background usage of service workers.</li><li><strong>PRPL<br></strong>a. <strong>P</strong>ush (or preload) the most important resources.<br>b. <strong>R</strong>ender the initial route as soon as possible.<br>c. <strong>P</strong>re-cache remaining assets.<br>d. <strong>L</strong>azy load other routes and non-critical assets.</li><li><strong>Web storage: </strong>PWA supports offline support and for offline support to work, some sort of data persistence is needed. This is where Web Storage comes in. When a user temporarily loses internet connectivity. In order to make the PWA still usable in offline mode, web storage can be used to display already saved data when needed.<br>Web storage comes with various Web Storage APIs such as <strong>Local Storage</strong>, <strong>Session Storage</strong>, and <a href="https://developers.google.com/web/ilt/pwa/working-with-indexeddb-slides"><strong>IndexedDB</strong></a>.</li></ol><h3>Summary</h3><p>In this blog, we have explored PWA, its advantages, features, and why it is gaining popularity, and PWA help to provide a better experience for users who access the internet through their mobile devices. I explained service worker, Web manifest, HTTPs which are the key components of PWA. Hopefully, this blog can help you to get a basic idea about PWA.</p><h3>Creating a PWA</h3><p>I will cover creating your own PWA including setting up service workers, web manifest JSON file, offline access gets new version update notification, and more in the next blog post using Angular. So stay tuned and follow my account so that you can catch all the new posts when it’s live.</p><p>Feel free to connect with us read more articles from<strong> </strong><a href="https://www.aeologic.com/"><strong>Aeologic.com</strong></a><strong>.</strong></p><p><strong>Aeologic Technologies</strong> is a dynamic, solution and value driven technology company. We position ourselves as a new generation cutting edge technology company. We work creatively to enable businesses with leading technologies and solutions. You can connect with us on <a href="https://www.facebook.com/aeologictech">Facebook</a>, <a href="https://twitter.com/aeologictech">Twitter</a>, and <a href="https://www.linkedin.com/company/aeologic-technologies">LinkedIn</a> for any queries.</p><figure><a href="http://www.aeologic.com/"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GM5-_fTVNgVFfWJznrY2cg.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a3b00f181d8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aeologic/introduction-to-pwa-5a3b00f181d8">Introduction to PWA</a> was originally published in <a href="https://medium.com/aeologic">Aeologic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>