61
JOURNEY TO THE WEBSUMMIT ONLINE MASTERCLASSES From Modern WebStandards to Progressive Web APPS Alexandre Marreiros

Jws masterclass progressive web apps

Embed Size (px)

Citation preview

Page 1: Jws masterclass progressive web apps

JOURNEY TO THE WEBSUMMIT ONLINE MASTERCLASSES

From Modern WebStandards to Progressive Web APPS

Alexandre Marreiros

Page 2: Jws masterclass progressive web apps

Questions?

#MicrosoftJWS

Page 3: Jws masterclass progressive web apps

About

@alexmarreiros; Digitalmindignition.com

Alexandre Marreiros

Windows Platform Development Microsoft MVPMicrosoft Windows DevCamp TrainerWindows InsiderCTO @ InnovagencySoftware Dev/Arch as IndependentTechnical Trainer and Speaker as IndependentTeacher @ EDITTechnical Writer

Page 4: Jws masterclass progressive web apps

JOURNEY TO THE WEBSUMMIT ONLINE MASTERCLASSES

From Modern WebStandards to Progressive Web APPS

Page 5: Jws masterclass progressive web apps

JOURNEY TO THE WEBSUMMIT ONLINE MASTERCLASSES

Foundations

Page 6: Jws masterclass progressive web apps

Web Foundations

Page 7: Jws masterclass progressive web apps

Cross Plataform Technologies

Page 8: Jws masterclass progressive web apps

Standards

Page 9: Jws masterclass progressive web apps

JOURNEY TO THE WEBSUMMIT ONLINE MASTERCLASSES

Web Experiences Web Adaption to Embrace Experience

Page 10: Jws masterclass progressive web apps

Different sizes, Experiences

Page 11: Jws masterclass progressive web apps

Responsive Web Design

Page 12: Jws masterclass progressive web apps

Grids

Page 13: Jws masterclass progressive web apps

CSS

Page 14: Jws masterclass progressive web apps

JavaScript and CSS Frameworks

Image from Template Toaster

Page 15: Jws masterclass progressive web apps

JOURNEY TO THE WEBSUMMIT ONLINE MASTERCLASSES

Using Web to build APP’s

Page 16: Jws masterclass progressive web apps

Cordova

Page 17: Jws masterclass progressive web apps

WIN JS

Page 18: Jws masterclass progressive web apps

Web as an Equal Citizen (Windows 8 )

Page 19: Jws masterclass progressive web apps

Hosted Web APP’S(Windows 10)

Page 20: Jws masterclass progressive web apps

JOURNEY TO THE WEBSUMMIT ONLINE MASTERCLASSES

“Distribute Native Software is Hard”Alex Russel

Page 21: Jws masterclass progressive web apps

JOURNEY TO THE WEBSUMMIT ONLINE MASTERCLASSES

Mobile Web Vs Mobile Apps

Page 22: Jws masterclass progressive web apps

Web Mobile Vs Mobile AppsWeb Mobile Mobile APPS

Interoperability Performance

Vendor Independent Reliable

Streamined Mantenance and Upgrade Pathways Seamless User Interface

Based on Open Standards OS Embracement

Increased Security Options Easy Offline Support

Shorter Time To Market Push Notifications

Leverage Existing Web Skills Experience and Evolution Native APIS and device features integrtionEasy to Search Store DistributionBrowser dependent Can’t Control user’s upgrades

Store Dependent

Page 23: Jws masterclass progressive web apps

Web Mobile Vs Mobile Apps

Page 24: Jws masterclass progressive web apps

Conected Phone usage

Business Insider

Page 25: Jws masterclass progressive web apps

APP Lifecycle

1) User Search for an APP on the Store, ask to download

2) User Install the APP3) User navigate to a Website where is

sugested to download an APP4) Users go to the store

Page 26: Jws masterclass progressive web apps

APP Lifecycle1) Check Install

2) Use the APP

Times this is the first and last user’s interation

Page 27: Jws masterclass progressive web apps

APP vs Web Mobile Reach

Page 28: Jws masterclass progressive web apps

APP vs Web Mobile Reach

Page 29: Jws masterclass progressive web apps

JOURNEY TO THE WEBSUMMIT ONLINE MASTERCLASSES

Fixing Mobile Web

Page 30: Jws masterclass progressive web apps

The Problem

Page 31: Jws masterclass progressive web apps

The Fix

Page 32: Jws masterclass progressive web apps

The Problem

Page 33: Jws masterclass progressive web apps

The Fix

Page 34: Jws masterclass progressive web apps

JOURNEY TO THE WEBSUMMIT ONLINE MASTERCLASSES

Progressive Web APPS(PWA)

Page 35: Jws masterclass progressive web apps

The Main Idea“Taking Advantage of the latest Web Technologies and Web development Skills and Experience, to combine the best of Web and Mobile APPS”

Kevin Farrugia, Incredible Web

“This kind of Aplications are almost equal to the APPS on the Store, but They are just Websites who had take Vitamins.”

Fabricio Teixeira, BlogAI

Page 36: Jws masterclass progressive web apps

Who’s Behind this

Page 37: Jws masterclass progressive web apps

Progressive Web APPS Goal

Page 38: Jws masterclass progressive web apps

The Main IdeaThey are Sites in the Browser Context but act as Apps once in the Home Screen

https://www.washingtonpost.com/pwa/

Page 39: Jws masterclass progressive web apps

The Main Idea

Page 40: Jws masterclass progressive web apps

Features of a PWA

Progressive Discoverably Linkable Responsive Secure

Page 41: Jws masterclass progressive web apps

Features of a PWAApp-like:A progressive web app should look like a native app and be built on the application shell model, with minimal page refreshes.

Re-engageable:Mobile app users are more likely to reuse their apps, and progressive web apps are intended to achieve the same goals through features such as push notifications.

Installable:A progressive web app can be installed on the device’s home screen, making it readily available.

Fresh:When new content is published that content should be made available in the app.

Page 42: Jws masterclass progressive web apps

Before Start- Understand Service Worker Service workers are programmable proxies that sit between the user’s tab and the wider Internet. They intercept and rewrite or fabricate network requests to allow very granular caching and offline support.The service worker’s function is to simplify the process of bringing an app offline; it also lays the foundation for future app-like features, such as push notifications and background sync.

Page 43: Jws masterclass progressive web apps

Before Start – Understand Service Worker Service workers are Independent from the WebPage Doom.

Are a Browser Feature

Most supported on:

Chrome, Firefox, opera Almost suported on Edge

Page 44: Jws masterclass progressive web apps

Before Start – Understand Service Worker

To help you build your first service Worker: https://remysharp.com/2016/03/22/the-copy--paste-guide-to-your-first-service-worker

Page 46: Jws masterclass progressive web apps

JOURNEY TO THE WEBSUMMIT ONLINE MASTERCLASSES

Let´s see how to build a PWA

Page 47: Jws masterclass progressive web apps

PWA For a Ticket Website

Page 48: Jws masterclass progressive web apps

PWA ManifestA web app manifest file is a simple JSON file that follows the W3C’specification.This metadata file in essence says to the OS that the WebSite as a APP Behavior. I case of using an Android Phone when you enter a Website that as a Manifest The browser will present a installation banner

Page 49: Jws masterclass progressive web apps

PWA Manifest

Page 50: Jws masterclass progressive web apps

Include the manifest

The manifest should them be linked from the index.html page of the Website.

Page 51: Jws masterclass progressive web apps

Build the Service Worker

Page 52: Jws masterclass progressive web apps

Build the Service Worker

To install and run our Service Worker, include the file in our case sw.js on your website

Page 53: Jws masterclass progressive web apps

JOURNEY TO THE WEBSUMMIT ONLINE MASTERCLASSES

We had seen the needed Code Let’s see some real examples

Page 54: Jws masterclass progressive web apps

http://www.Flipkart.com

https://flights.airberlin.com

http://www.theverge.com/

Page 55: Jws masterclass progressive web apps
Page 56: Jws masterclass progressive web apps

To Test

There also a Shell variation that we can get from GitHub https://github.com/GoogleChrome/lighthouse

Page 57: Jws masterclass progressive web apps
Page 58: Jws masterclass progressive web apps

Challenge For Progressive Web APPS• Few browser support is available till now, hence are efforts to be made by the

browsers to integrate features like Service Workers.

• Engagement with the user to use the web page more and more for better performance during offline mode or slow internet speeds.

• Native Apps that work completely offline cannot be converted into Progressive apps.

• Progressive Web APPs are a Challenger but this is not a battle, so it is necessary to understand what’s the role of PWA and Native APPS

Page 59: Jws masterclass progressive web apps

JOURNEY TO THE WEBSUMMIT ONLINE MASTERCLASSES

Keep the journeyStart today to build your progressive Web APP

Page 60: Jws masterclass progressive web apps

ContactsAlexandre Marreiros

Twitter: @alexmarreiros

Email: [email protected]@gmail.com

Blog:Digitalmindignition.com

Linkedin:https://pt.linkedin.com/in/alexandremarreiros

Page 61: Jws masterclass progressive web apps

Thank you!Check out upcoming

masterclasses at http://aka.ms/jwsmasterclasses