Maxim Salnikov
@webmaxru
Products from the future
Full-Stack Engineer at ForgeRock
November 1-2, Oslo, Norway
- iOS / Android
- IoT / Hardware
- Mobile web / PWA
- Mobile UX / Accessibility
- Cross-platform / JS-to-Native
... attempts to combine features offered by most modern browsers with the benefits of mobile experience
... web apps that use the latest web technologies.
Progressive
Discoverable
Linkable
App-like
Responsive
Connectivity-independent
Re-engageable
Installable
Fresh
Safe
App
Service worker
'install'
Parsed
Installing
Activating
Redundant
'activate'
Waiting
Active
My App
self.addEventListener('install', (event) => {
// Put app's html/js/css to cache
})
self.addEventListener('activate', (event) => {
// Wipe previous version of app files from cache
})
self.addEventListener('fetch', (event) => {
if (event.request.url.indexOf('/api') != -1) {
event.respondWith(
// Network-First Strategy
)
} else {
event.respondWith(
// Cache-First Strategy
)
}
})
Flexibility
Automation
Stability