SlideShare a Scribd company logo
BASLE BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA
HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART VIENNA ZURICH
Offline web applications don’t exist anymoreOffline web applications don’t exist anymore
Francesco LeardiniFrancesco Leardini
ConsultantConsultant
@paco_ITA@paco_ITA
Once upon a time there was the downasaur…
Offline web applications don’t exist anymore2 14.09.2018
...and nowadays!
Offline web applications don’t exist anymore3 14.09.2018
Branded offline pages Engaging pages
What is a Progressive Web Application (PWA)
Offline web applications don’t exist anymore4 14.09.2018
A PWA is a web application whose goal is to behave and look like a native app
•Installable: thanks to the web app manifest
•Work offline: using service workers (sw)
•Can send push notifications
Add to Home Screen
Offline web applications don’t exist anymore5 14.09.2018
Web app install prompt
From the second visit, the browser proposes
to add the link on the home screen.
Web App Manifest (manifest.json)
Offline web applications don’t exist anymore6 14.09.2018
How does a PWA makes websites available offline?
7
• is a component of JavaScript code
• works as a proxy between the browser and the network
• runs in the background on a separate thread (no blocking)
• works only on secure connections (localhost is considered secure)
service workerA :
Offline web applications don’t exist anymore14.09.2018
Service worker chaching strategies
8 Offline web applications don’t exist anymore14.09.2018
Two main caching strategies for data resources:
Performance
 If a resource exists in the cache, the cached version is used
Freshness
 Only if the network times out, the request falls back to the cache
Service worker in action
9
The first time the app is accessed, the service worker stores the required resources in the
browser cache.
cache
service worker.js
When the user visits the app next time, the service worker checks the cache and returns the
response to the user even before accessing the web server.
Offline web applications don’t exist anymore14.09.2018
web server
How much can we store in cache?
10 Offline web applications don’t exist anymore14.09.2018
Service Workers in Angular
11 Offline web applications don’t exist anymore14.09.2018
With angular-cli (1.6+) we can easily turn an existing application into a PWA:
Two new files will be created and added to our project:
•ngsw-config.json
•manifest.json
13
PWA demoPWA demo
Offline web applications don’t exist anymore14.09.2018
14
Can we do better?Can we do better?
Offline web applications don’t exist anymore14.09.2018
Firebase platform
Offline web applications don’t exist anymore15 14.09.2018
Cloud Firestore
Offline web applications don’t exist anymore16 14.09.2018
• Still in beta release (Oct 2017)
• NoSQL Database
• Real-time data updates (3-way binding)
• Offline support for mobile (iOS/Android) and web
Enable offline data in Cloud Firebase
Offline web applications don’t exist anymore17 14.09.2018
• A copy of the data used is cached locally and made available
when the device is offline.
• It is still possible to write, read and query the cached data.
• Once back online, Cloud Firestore synchronizes local changes
with the server DB.
Offline data limitations
Offline web applications don’t exist anymore18 14.09.2018
• Max 500 offline transactions possible
• Possible saving conflicts (last write wins)
19
A «A «never offline»never offline» app demoapp demo
Offline web applications don’t exist anymore14.09.2018
BASLE BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA
HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART VIENNA ZURICH
Questions?Questions?
 

More Related Content

PDF
Introduction to webassembly
PDF
Handle the error
PDF
Polymer and Firebase: Componentizing the Web in Realtime
PPTX
Architecture & Workflow of Modern Web Apps
PDF
Anatomy of a Progressive Web App
PDF
Isomorphic javascript - Uppsala.js #8
PPTX
Building SPAs with AngularJS
PPTX
GDG Ibadan #pwa
Introduction to webassembly
Handle the error
Polymer and Firebase: Componentizing the Web in Realtime
Architecture & Workflow of Modern Web Apps
Anatomy of a Progressive Web App
Isomorphic javascript - Uppsala.js #8
Building SPAs with AngularJS
GDG Ibadan #pwa

What's hot (20)

PDF
Frameworks for Web Development
DOCX
Karl-Grittner-Resume
PPTX
PWA basics for developers
PDF
Building a Progressive Web App
PDF
Creating Rajanikant Powered Site
PDF
OSGi Web Development in Action
PPTX
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code Camp
PPTX
Performance optimization of vue.js apps with modern js
PDF
Progressive Web Apps
PDF
和歌山ITカーニバル2015「WordPressの現状と未来、企業によるオープンソースへの貢献について」
PDF
Web fundamental 4 developers
PPTX
Fronted development trends - past, present and the future
PDF
Magento 2 Community Project - Moving from LESS to SASS
PDF
Mobile Web App & Google Apps Script
PDF
Why & which mobile cross platform?
PDF
Progressive web apps
PDF
Rise and Fall of the Frontend Developer
PDF
Meet.js Summit 2019 - PWA in practice
PDF
Progressive Web App - Jeff Burtoft at microsoft zaventem 03-10-2016
PPTX
How Magento Front-end is Going from Zero to Hero
Frameworks for Web Development
Karl-Grittner-Resume
PWA basics for developers
Building a Progressive Web App
Creating Rajanikant Powered Site
OSGi Web Development in Action
Doing Modern Web, aka JavaScript and HTML5 in the Enterprise NYC Code Camp
Performance optimization of vue.js apps with modern js
Progressive Web Apps
和歌山ITカーニバル2015「WordPressの現状と未来、企業によるオープンソースへの貢献について」
Web fundamental 4 developers
Fronted development trends - past, present and the future
Magento 2 Community Project - Moving from LESS to SASS
Mobile Web App & Google Apps Script
Why & which mobile cross platform?
Progressive web apps
Rise and Fall of the Frontend Developer
Meet.js Summit 2019 - PWA in practice
Progressive Web App - Jeff Burtoft at microsoft zaventem 03-10-2016
How Magento Front-end is Going from Zero to Hero
Ad

Similar to TechEvent Offline web applications don't exist anymore (20)

PPTX
SearchLeeds 2019 - Nichola stott - The state of PWAs
PPTX
Progressive web app
PDF
Progressive Web Apps –The Future of Apps
PDF
Checklist for progressive web app development
PDF
The web - What it has, what it lacks and where it must go - Bulgaria Web Summ...
PPTX
How LISI Automotive Accelerated Application Delivery with SwaggerHub
PPTX
Progressive web application
PDF
Pwa is the future. The Presentation I gave at PWA event
DOCX
progressive web app
PDF
The web - What it has, what it lacks and where it must go - keynote at Riga D...
PPTX
Progressive Web Apps for Education
PPSX
Progressive Web App
PPTX
Progressive Web Apps
PDF
PERFORMANCE ENHANCEMENT OF WEBPAGE USING PROGRESSIVE WEB APP FEATURES
PDF
A year with progressive web apps! #DevConMU
PDF
Service workers are your best friends
PDF
The web - What it has, what it lacks and where it must go - Istanbul
PDF
Turku <3 Frontend - Progressive Web Apps, Web and Apps
PPTX
Why Progressive Apps For WordPress?
PDF
Focus sur les PWA par Loic de Saint-Andrieu de Google
SearchLeeds 2019 - Nichola stott - The state of PWAs
Progressive web app
Progressive Web Apps –The Future of Apps
Checklist for progressive web app development
The web - What it has, what it lacks and where it must go - Bulgaria Web Summ...
How LISI Automotive Accelerated Application Delivery with SwaggerHub
Progressive web application
Pwa is the future. The Presentation I gave at PWA event
progressive web app
The web - What it has, what it lacks and where it must go - keynote at Riga D...
Progressive Web Apps for Education
Progressive Web App
Progressive Web Apps
PERFORMANCE ENHANCEMENT OF WEBPAGE USING PROGRESSIVE WEB APP FEATURES
A year with progressive web apps! #DevConMU
Service workers are your best friends
The web - What it has, what it lacks and where it must go - Istanbul
Turku <3 Frontend - Progressive Web Apps, Web and Apps
Why Progressive Apps For WordPress?
Focus sur les PWA par Loic de Saint-Andrieu de Google
Ad

More from Trivadis (20)

PDF
Azure Days 2019: Azure Chatbot Development for Airline Irregularities (Remco ...
PDF
Azure Days 2019: Trivadis Azure Foundation – Das Fundament für den ... (Nisan...
PDF
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
PDF
Azure Days 2019: Master the Move to Azure (Konrad Brunner)
PDF
Azure Days 2019: Keynote Azure Switzerland – Status Quo und Ausblick (Primo A...
PDF
Azure Days 2019: Grösser und Komplexer ist nicht immer besser (Meinrad Weiss)
PDF
Azure Days 2019: Get Connected with Azure API Management (Gerry Keune & Stefa...
PDF
Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...
PDF
Azure Days 2019: Wie bringt man eine Data Analytics Plattform in die Cloud? (...
PDF
Azure Days 2019: Azure@Helsana: Die Erweiterung von Dynamics CRM mit Azure Po...
PDF
TechEvent 2019: Kundenstory - Kein Angebot, kein Auftrag – Wie Du ein individ...
PDF
TechEvent 2019: Oracle Database Appliance M/L - Erfahrungen und Erfolgsmethod...
PDF
TechEvent 2019: Security 101 für Web Entwickler; Roland Krüger - Trivadis
PDF
TechEvent 2019: Trivadis & Swisscom Partner Angebote; Konrad Häfeli, Markus O...
PDF
TechEvent 2019: DBaaS from Swisscom Cloud powered by Trivadis; Konrad Häfeli ...
PDF
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...
PDF
TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...
PDF
TechEvent 2019: Kundenstory - Vom Hauptmann zu Köpenick zum Polizisten 2020 -...
PDF
TechEvent 2019: Vom Rechenzentrum in die Oracle Cloud - Übertragungsmethoden;...
PDF
TechEvent 2019: The sleeping Power of Data; Eberhard Lösch - Trivadis
Azure Days 2019: Azure Chatbot Development for Airline Irregularities (Remco ...
Azure Days 2019: Trivadis Azure Foundation – Das Fundament für den ... (Nisan...
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
Azure Days 2019: Master the Move to Azure (Konrad Brunner)
Azure Days 2019: Keynote Azure Switzerland – Status Quo und Ausblick (Primo A...
Azure Days 2019: Grösser und Komplexer ist nicht immer besser (Meinrad Weiss)
Azure Days 2019: Get Connected with Azure API Management (Gerry Keune & Stefa...
Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...
Azure Days 2019: Wie bringt man eine Data Analytics Plattform in die Cloud? (...
Azure Days 2019: Azure@Helsana: Die Erweiterung von Dynamics CRM mit Azure Po...
TechEvent 2019: Kundenstory - Kein Angebot, kein Auftrag – Wie Du ein individ...
TechEvent 2019: Oracle Database Appliance M/L - Erfahrungen und Erfolgsmethod...
TechEvent 2019: Security 101 für Web Entwickler; Roland Krüger - Trivadis
TechEvent 2019: Trivadis & Swisscom Partner Angebote; Konrad Häfeli, Markus O...
TechEvent 2019: DBaaS from Swisscom Cloud powered by Trivadis; Konrad Häfeli ...
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing Postgr...
TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...
TechEvent 2019: Kundenstory - Vom Hauptmann zu Köpenick zum Polizisten 2020 -...
TechEvent 2019: Vom Rechenzentrum in die Oracle Cloud - Übertragungsmethoden;...
TechEvent 2019: The sleeping Power of Data; Eberhard Lösch - Trivadis

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Electronic commerce courselecture one. Pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Getting Started with Data Integration: FME Form 101
PPTX
Big Data Technologies - Introduction.pptx
PPTX
1. Introduction to Computer Programming.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Tartificialntelligence_presentation.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
MYSQL Presentation for SQL database connectivity
Network Security Unit 5.pdf for BCA BBA.
Mobile App Security Testing_ A Comprehensive Guide.pdf
A comparative analysis of optical character recognition models for extracting...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
“AI and Expert System Decision Support & Business Intelligence Systems”
Per capita expenditure prediction using model stacking based on satellite ima...
Electronic commerce courselecture one. Pdf
Spectral efficient network and resource selection model in 5G networks
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Getting Started with Data Integration: FME Form 101
Big Data Technologies - Introduction.pptx
1. Introduction to Computer Programming.pptx
Unlocking AI with Model Context Protocol (MCP)
Tartificialntelligence_presentation.pptx
Assigned Numbers - 2025 - Bluetooth® Document

TechEvent Offline web applications don't exist anymore

  • 1. BASLE BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART VIENNA ZURICH Offline web applications don’t exist anymoreOffline web applications don’t exist anymore Francesco LeardiniFrancesco Leardini ConsultantConsultant @paco_ITA@paco_ITA
  • 2. Once upon a time there was the downasaur… Offline web applications don’t exist anymore2 14.09.2018
  • 3. ...and nowadays! Offline web applications don’t exist anymore3 14.09.2018 Branded offline pages Engaging pages
  • 4. What is a Progressive Web Application (PWA) Offline web applications don’t exist anymore4 14.09.2018 A PWA is a web application whose goal is to behave and look like a native app •Installable: thanks to the web app manifest •Work offline: using service workers (sw) •Can send push notifications
  • 5. Add to Home Screen Offline web applications don’t exist anymore5 14.09.2018 Web app install prompt From the second visit, the browser proposes to add the link on the home screen.
  • 6. Web App Manifest (manifest.json) Offline web applications don’t exist anymore6 14.09.2018
  • 7. How does a PWA makes websites available offline? 7 • is a component of JavaScript code • works as a proxy between the browser and the network • runs in the background on a separate thread (no blocking) • works only on secure connections (localhost is considered secure) service workerA : Offline web applications don’t exist anymore14.09.2018
  • 8. Service worker chaching strategies 8 Offline web applications don’t exist anymore14.09.2018 Two main caching strategies for data resources: Performance  If a resource exists in the cache, the cached version is used Freshness  Only if the network times out, the request falls back to the cache
  • 9. Service worker in action 9 The first time the app is accessed, the service worker stores the required resources in the browser cache. cache service worker.js When the user visits the app next time, the service worker checks the cache and returns the response to the user even before accessing the web server. Offline web applications don’t exist anymore14.09.2018 web server
  • 10. How much can we store in cache? 10 Offline web applications don’t exist anymore14.09.2018
  • 11. Service Workers in Angular 11 Offline web applications don’t exist anymore14.09.2018 With angular-cli (1.6+) we can easily turn an existing application into a PWA: Two new files will be created and added to our project: •ngsw-config.json •manifest.json
  • 12. 13 PWA demoPWA demo Offline web applications don’t exist anymore14.09.2018
  • 13. 14 Can we do better?Can we do better? Offline web applications don’t exist anymore14.09.2018
  • 14. Firebase platform Offline web applications don’t exist anymore15 14.09.2018
  • 15. Cloud Firestore Offline web applications don’t exist anymore16 14.09.2018 • Still in beta release (Oct 2017) • NoSQL Database • Real-time data updates (3-way binding) • Offline support for mobile (iOS/Android) and web
  • 16. Enable offline data in Cloud Firebase Offline web applications don’t exist anymore17 14.09.2018 • A copy of the data used is cached locally and made available when the device is offline. • It is still possible to write, read and query the cached data. • Once back online, Cloud Firestore synchronizes local changes with the server DB.
  • 17. Offline data limitations Offline web applications don’t exist anymore18 14.09.2018 • Max 500 offline transactions possible • Possible saving conflicts (last write wins)
  • 18. 19 A «A «never offline»never offline» app demoapp demo Offline web applications don’t exist anymore14.09.2018
  • 19. BASLE BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART VIENNA ZURICH Questions?Questions?