Close

We are a IT company, which offer various IT services

  • MON - SAT (9AM - 5PM)

    Sunday colsed
  • MAIL US

    info@Africodeconsult.com
  • PHONE US

    (+250) 781467638

Progressive web applications

  • Home
  • /
  • Blog
  • /
  • Progressive web applications
Progressive web applications

Progressive web applications

Progressive web applications (PWAs) are web applications that load like regular web pages or websites but can offer the user functionality such as working offlinepush notifications, and device hardware access traditionally available only to nativeapplications. PWAs combine the flexibility of the web with the experience of a native application.

Background

Since around 2005 web development technologies have shifted from static to dynamic web pages driven by server (PHPASP.NET) or client side (Ajaxtools, and responsive web design.

Despite apps based on these technologies on devices such as the 2007 iPhone, attempts at web apps failed by comparison to native apps. Native apps provided a better user experience and booted faster compared to having to load in a browser at runtime. Packaged resources and direct access to hardware allowed native apps to perform much faster to provide more features. By mid 2010, however, continued enhancements in HTML5CSS3, and JavaScript, significantly more capable and standard-compliant web browsers, along with powerful processors such as the Apple A10 and Snapdragon 820 made hybrid-apps a viable alternative.

Characteristics

In 2015, designer Frances Berriman and Google Chrome engineer Alex Russell coined the term "progressive web apps"to describe apps taking advantage of new features supported by modern browsers, including service workers and web app manifests, that let users upgrade web apps to progressive web applications in their native operating system (OS). According to Google Developers, these characteristics are:

  • Progressive — Work for every user, regardless of browser choice because they're built with progressive enhancement as a core tenet.
  • Responsive — Fit any form factor: desktop, mobile, tablet, or forms yet to emerge.
  • Connectivity independent — Service workers allow work offline, or on low quality networks.
  • App-like — Feel like an app to the user with app-style interactions and navigation.
  • Fresh — Always up-to-date thanks to the service worker update process.
  • Safe — Served via HTTPS to prevent snooping and ensure content hasn't been tampered with.
  • Discoverable — Are identifiable as “applications” thanks to W3C manifests and service worker registration scope allowing search engines to find them.
  • Re-engageable — Make re-engagement easy through features like push notifications.
  • Installable — Allow users to “keep” apps they find most useful on their home screen without the hassle of an app store.
  • Linkable — Easily shared via a URL and do not require complex installation.

Progressive web apps are an enhancement of existing web technology. As such, they do not require separate bundling or distribution. Publication of a progressive web app is as it would be for any other web page. PWAs work in any browser, but "app-like" features such as being independent of connectivity, install to home screen & push messaging depend on browser support. As of April 2018, those features are supported to varying degrees by the Microsoft Edge, Google Chrome, Mozilla Firefox and Safari browsers, but more browsers may support the features needed in the future.

The technical baseline criteria for a site to be considered a progressive web app by browsers were described by Russell in a follow-up post:

  • Originate from a secure origin. Served over TLS and green padlock displays (no active mixed content).
  • Load while offline (even if only a custom offline page). By implication, this means that progressive web apps require service workers.
  • Reference a web app manifest with at least the four key properties: name, short_name, start_url, and display (with a value of standalone or fullscreen)
  • An icon at least 144×144 large in png format. E.g.: "icons": [ { "src": "/images/icon-144.png", "sizes": "144x144", "type": "image/png" } ]

Technologies

Commonly used technologies serve to create progressive web apps in the broad sense are the following:

Manifest

The web app manifest is a W3C specification defining a JSON-based manifest to provide developers a centralized place to put metadata associated with a web application including:

  • The name of the web application
  • Links to the web app icons or image objects
  • The preferred URL to launch or open the web app
  • The web app configuration data for a number of characteristics
  • Declaration for default orientation of the web app
  • Enables to set the display mode e.g. full screen

This metadata is crucial for an app to be added to a home screen or otherwise listed alongside native apps.

AppCache (obsolete)

An earlier technology to support offline use of the web.It works adequately for the use case it was designed for (single-page application), but fails in problematic ways for wikis and other multi-page apps. Currently supported by major browsers and in use for years by some sites, but will eventually be removed.

Service workers

Native mobile apps deliver rich experiences and high performance, purchased at the expense of storage space, lack of real-time updates, and low search engine visibility. Traditional web apps suffer from the inverse set of factors: lack of a native compiled executable, along with dependence on unreliable and potentially slow web connectivity. Service workers are used in an attempt to give progressive web apps the best of both these worlds.

Technically, service workers provide a scriptable network proxy in the web browser to manage the web/HTTP requests programmatically. The service workers lie between the network and device to supply the content. They are capable of using the cache mechanisms efficiently and allow error-free behavior during offline periods.

Properties of service workers:

  1. Trigger and keep alive by the relationship to the events, not by the documents.
  2. Generic in nature
  3. Event-driven with time limit scripting contexts and running at the origin
  4. With natural endpoints for a wide range of runtime services
  5. Have a state
  6. With a script URL
  7. Containing registration
  8. Allocated ID or UUID
  9. With lifecycle events
  10. Have script resource map
  11. Can skip waiting for the flags

Benefits of service workers:

  • Capable of handling the push notification easily
  • Synchronise data in the background
  • Capable of responding to resource requests originating elsewhere
  • Receive centralized updates

WebWorkers

Allows a web app to run multiple threads of (JavaScript) code simultaneously Thus, long activities can be moved off the user-interface thread, keeping responses snappy. They have a close relationship with Service Workers, but are more widely supported.

WebAssembly

Allows precompiled code to run in a web browser, at near-native speed.Thus, libraries written in languages such as C can be added to web apps. Due to the cost of passing data from JavaScript to WebAssembly, near-term uses will be mainly number-crunching (such as voice recognition and computer vision), rather than whole applications.

Indexed Database (IDB)

A NoSQL database built into modern browsers Allows a PWA to immediately display content, regardless of connection status or speed.

LocalStorage & SessionStorage

Key-Value stores that largely make cookies obsolete.

Application shell architecture

Some progressive web apps use an architectural approach called the App Shell Model. For rapid loading, service workers store the Basic User Interface or "shell" of the responsive web design web application. This shell provides an initial static frame, a layout or architecture into which content can be loaded progressively as well as dynamically, allowing users to engage with the app despite varying degrees of web connectivity. The shell can be stored locally in the browser cache of the mobile device.

Directories and examples

  • Progressive Web App Room is a curated store of PWA, the best examples of good usability, design and user experience.
  • PWA Directory is a moderated list that allows searching by keyword or Lighthouse score.
  • The Microsoft Store contains "PWAs" packaged for Windows 10, but does not appear to contain links to actual on-line PWAs. It's not clear that it can list web apps separate from Windows apps.
  • Appscope is a directory of hundreds of Progressive Web Apps, grouped into categories and accompanied by descriptions, screenshots, PWA features, and Lighthouse scores.

Comments

  1. Jhon

    Instant Online Loans Instant Online Loans

  2. Jhon

    AaronPef AaronPef

  3. Jhon

    Loan Cash Loan Cash

  4. Jhon

    ioqebuwpitor ioqebuwpitor

    Encourage amh.ajhz.africodeconsult.com.ubh.rw re-expand [URL=http://russianpoetsfund.com/product/femara/#cost-of-femara-tablets - prices for femara[/URL - [URL=http://cheapflights-advice.org/product/styplon/#cheap-styplon - cheapest styplon dosage price[/URL - [URL=http://gamblingbest-casino.best/#best-gambling-resources - best gambling guide[/URL - [URL=http://cgodirek.com/slip-inn/#buy-slip-inn-online - slip inn online[/URL - [URL=http://andyvangrinsven.com/tadalafil/#cialis - cialis cheapest[/URL - [URL=http://redemptionbrewworks.com/menosan/#generic-menosan-tablets - menosan[/URL - tailor femara brand femara prices price of styplon best gambling resources cheap slip inn slip inn online cialis is used for menosan online usa key polyneuropathy, http://russianpoetsfund.com/product/femara/#cost-of-femara-tablets femara pills http://cheapflights-advice.org/product/styplon/#low-cost-styplon buy styplon no prescription http://gamblingbest-casino.best/#best-gambling-rules best gambling games best gambling websites http://cgodirek.com/slip-inn/#order-slip-inn-online slip inn lowest price http://andyvangrinsven.com/tadalafil/#cialis cialis 20 mg lowest price http://redemptionbrewworks.com/menosan/#menosan menosan without prescription psychotherapy, slices.

  5. Jhon

    Coneapenesmanna Coneapenesmanna

    online casinos free slots cashman casino slots no deposit casino play slots

  6. Jhon

    Annonywospink Annonywospink

    online casino bonus world class casino slots play slots no deposit casino online casino slots online

  7. Jhon

    ucrdaninu ucrdaninu

    Microscopic tad.vloe.africodeconsult.com.puk.yz pneumonectomy [URL=http://redemptionbrewworks.com/parlodel/#parlodel-online-uk - parlodel[/URL - [URL=http://cheapflights-advice.org/product/cialis-with-dapoxetine/#cialis-with-dapoxetine - cialis with dapoxetine[/URL - [URL=http://srqypg.com/product/purim/#purim-best-price - where to buy purim online[/URL - [URL=http://bigskilletlive.com/nizagara/#nizagara - nizagara from canada[/URL - [URL=http://tacticaltomahawkreviews.com/cialis-professional/#cialis-professional-autoscout24-sweden - cialis professional lowest price[/URL - diabetics rewarmed parlodel en ligne cialis with dapoxetine purim without an rx nizagara online canada buy generic nizagara impfreaktion nach pneumax impfung cialis professional flucosal nocturia, http://redemptionbrewworks.com/parlodel/#parlodel-coupons generic parlodel at walmart http://cheapflights-advice.org/product/cialis-with-dapoxetine/#cialis-with-dapoxetine-buy-in-canada cost of cialis with dapoxetine tablets http://srqypg.com/product/purim/#non-prescription-purim purim online http://bigskilletlive.com/nizagara/#nizagara buy nizagara online canada http://tacticaltomahawkreviews.com/cialis-professional/#cialis-professional-online cialis professional canada doctor's scenarios.

  8. Jhon

    qabowisidudoq qabowisidudoq

    Hypercalcaemia; qmy.prmg.africodeconsult.com.fmt.rx vitamin immobile [URL=http://aakritiartsonline.com/geodon-online/#geodon-online - geodon[/URL - geodon [URL=http://srqypg.com/product/jelly-pack-15/#low-price-jelly-pack-15 - non prescription jelly pack 15[/URL - [URL=http://fbwhatsapquotes.com/canadian-pharmacy-online/#northwest-pharmacy-canada - pharmacy[/URL - [URL=http://biblebaptistny.org/kamagra/#kamagra-oral-jelly - kamagra[/URL - [URL=http://fbwhatsapquotes.com/prednisone-20-mg/#can-i-order-prednisone-without-a-prescri... - prednisone[/URL - [URL=http://online-casinogamble.space/#mystic-lake-casino - best online casino[/URL - [URL=http://damcf.org/kamagra-soft/#discount-kamagra-soft - best price kamagra soft[/URL - thirst abortion geodon lowest price pharmacy prices for jelly pack 15 canadian pharmacy online kamagra buy kamagra jelly prednisone without dr prescription prednisone casino kamagra soft tingling http://aakritiartsonline.com/geodon-online/#geodon-online geodon http://srqypg.com/product/jelly-pack-15/#jelly-pack-15 jelly pack 15 online pharmacy http://fbwhatsapquotes.com/canadian-pharmacy-online/#pharmacy canadian pharmacy online http://biblebaptistny.org/kamagra/#kamagra-oral-jelly kamagra oral jelly canada http://fbwhatsapquotes.com/prednisone-20-mg/#buy-prednisone-without-prescription prednisone http://online-casinogamble.space/#free-online-casino casino http://damcf.org/kamagra-soft/#kamagra-soft-tablets kamagra soft online acknowledges conditions.

  9. Jhon

    iafuzabupusij iafuzabupusij

    Acute dey.ejlp.africodeconsult.com.dmo.pz low-birthweight [URL=http://palawan-resorts.com/buy-levitra/#levitra-on-line - is generic levitra safe[/URL - [URL=http://online-prednisonelowest-price.com/#buy-prednisone - prednisone without a prescription[/URL - prednisone 20 mg [URL=http://amoxilcanadaamoxicillin.com/#amoxicilline-500-mg - amoxicillin 500mg capsules without presc...[/URL - [URL=http://srqypg.com/product/naprelan/#on-line-naprelan - naprelan price at walmart[/URL - [URL=http://scoverage.org/cheap-propecia/#buy-propecia - propecia without pres[/URL - [URL=http://christmastreesnearme.net/cialis-shop-erfahrungen/#cialis-quando-non-usare - cialis shop erfahrungen[/URL - [URL=http://cheapflights-advice.org/product/indocin/#indocin-lowest-price - indocin capsules[/URL - [URL=http://cheapflights-advice.org/product/styplon/#cheap-styplon - styplon[/URL - p53 vardenafil generic prednisone without dr prescription amoxicillin online on line naprelan propecia buy cialis cheap us indocin styplon exonerated, http://palawan-resorts.com/buy-levitra/#levitra-generic-pills vardenafil 20 mg http://online-prednisonelowest-price.com/#prednisone-no-prescription prednisone no prescription http://amoxilcanadaamoxicillin.com/#amoxicillin-500mg amoxil de 250 mg http://srqypg.com/product/naprelan/#naprelan-prices naprelan price at walmart http://scoverage.org/cheap-propecia/#buy-propecia buy propecia http://christmastreesnearme.net/cialis-shop-erfahrungen/#buy-cialis-cheap-us buy cialis cheap us http://cheapflights-advice.org/product/indocin/#indocin generic indocin lowest price http://cheapflights-advice.org/product/styplon/#generic-styplon styplon cost signalled breaches specific.

Post Comments