Skip to Content
만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술
book

만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술

by 한민주, 양찬석, 탈 아터
April 2019
Beginner to intermediate
368 pages
7h 18m
Korean
Hanbit Media, Inc.
Content preview from 만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술
7 백그라운드 동기화를 통한 오프라인 기능 보장
- 229
이 모든 변경 사항을 다 적용한 후, 내 계정 페이지에 다시 방문해봅시다. 이번에
는 일단 페이지가 로드되고 나면 오프라인 상태
(
브라우저 개발자 도구를 사용하거나 개
발 서버를 끕니다
)
로 만들어 새 예약을 생성해봅니다. 예약은
IndexedDB
와
DOM
에 추가되고, 동기화 이벤트가 등록될 것입니다. 하지만 서버에는 여전히 접근이
불가능한 상황입니다. 그림
7
-
3
에서 보는 것과 같이 예약은 "
Sending
" 상태로
유지되어야 합니다. 이후 서버에 다시 연결되면 몇 분내로 동기화 이벤트가 발생
되고, 예약 상태가 "
Confirmed
"로 변경될 것입니다.
그림
7
-
3
백그라운드 동기화로 만들어진 예약
230 - 프로그레시브 웹 앱
모바일에서의 사용자 행동 양식
다시 인터넷에 연결이 되었다면, 동기화 이벤트가 발생하기를 기다릴 것입니다. 이미
동기화 이벤트가 발생했는지 아닌지 궁금하다면 브라우저 콘솔에서 다음 코드를 실
행해보세요.
navigator
.
serviceWorker
.
ready
.
then
(
function
(
registration ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

파이썬으로 웹 크롤러 만들기: 초간단 나만의 웹 크롤러로 원하는 데이터 가져오는 방법

파이썬으로 웹 크롤러 만들기: 초간단 나만의 웹 크롤러로 원하는 데이터 가져오는 방법

한선용, 라이언 미첼

Publisher Resources

ISBN: 9791162248737