Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports...

48
Updating mobile web pages! but why

Transcript of Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports...

Page 1: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Updating mobile web pages!but why

Page 2: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Salim KAYABAŞI@salimkayabasi+SalimKAYABAŞI

Page 3: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.
Page 4: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.
Page 5: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Mobile first does not mean

native only

Page 6: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Mobile-friendly

Page 7: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Offering native appor

Web app

Page 8: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Why web is good?

Page 9: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Indexable

Page 10: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Linkable

Page 11: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Secure

Page 12: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Updatable

Page 13: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Do we need native app?

Page 14: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

More platforms, more problems

Page 15: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.
Page 16: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

25average apps used

by a user per month

100+sites visited per

month by Chrome on Android user

Page 17: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Going Native?

❏ Performance❏ Offline access❏ Engagement❏ Capabilities

Page 18: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

HTML5WebComponents

Page 19: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

❏ templates❏ shadow dom❏ html imports❏ custom elements

Page 20: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Should we use hybrid apps?

Page 21: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Ionic framework

Cordova

Page 22: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

in-app browsing

Page 23: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

So let’s see what is the

Progressive Web App

Page 24: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

● 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 whatever is next.

● Connectivity independent - Enhanced with service workers to work offline or on low quality networks.

● App-like - Feel like an app to the user with app-style interactions and navigation because it's built on the app shell model.

● 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 share via URL and not require complex installation.

Page 25: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Offline

Page 26: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.
Page 27: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

regular web request

Page 28: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

if any problem on server

Page 29: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

use a service worker

Page 30: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

with cache

Page 31: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

works offline

Page 32: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

“There is an element for that”

polymer team

Page 33: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.
Page 34: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Push Notifications

Page 35: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

you have a service worker

Page 36: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

register to push server

Page 37: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

talk with app server

Page 38: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

send push to sw

Page 39: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

yay!

Page 40: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Quick Demo

Page 41: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Add to homescreenIs it new bookmark?

Page 42: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

hey! we already have this feature...

Page 43: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

but?

Page 44: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.
Page 48: Updating mobile web pages! - IT Weekend€¦ · WebComponents templates shadow dom html imports custom elements. Should we use hybrid apps? Ionic framework Cordova. in-app browsing.

Thank you!Questions?

http://bit.ly/be-progressive

@salimkayabasi+SalimKAYABAŞI

Don’t forget that this slides were presented on web