Angular Raleigh Meetup
Hey, Am Udhay (OO-dhy)
Progressive web apps use modern web APIs along with traditional progressive enhancement strategy to create cross-platform web applications. These apps work everywhere and provide several features that give them the same user experience advantages as native apps.
- Mozilla Web Docs
Progressive enhancement is the core principle in PWA.
Expose content of App to search engine for easy discover-ability.
Photo by Rajeshwar Bachu on Unsplash
Photo by Balázs Kétyi on Unsplash
Works great across all devices - Laptop, Desktop, Tablet and Mobile.
Photo by Domenico Loia on Unsplash
Works offline.
Photo by Jadon Kelly on Unsplash
NO
Photo by Alex Block on Unsplash
Serve on Https
Service Worker
Web Manifest
Responsive
No redirects
Service
Worker
(Web API)
ng add @angular/pwa
Creates the service worker configuration file called ngsw-config.json, which specifies the caching behaviors and other settings.
All features of PWA work great when App is deployed to Server and served on https.
You can deploy it to Firebase using its hosting feature, which is free.
Follow the below link to learn on how to deploy Angular app in Firebase.
Demo
Click through the below link for Live demo.
Desktop..
Mobile..
Does PWA support Bluetooth, camera, location etc.,?
A complete step by step guide to develop PWA in Angular -
Live Demo - http://bit.ly/dad-joke-app
Code -
Service Workers - https://developers.google.com/web/fundamentals/primers/service-workers
Angular Service Worker -
MDN Service Workers -
https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API
PWA Stats -