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

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

by 한민주, 양찬석, 탈 아터
April 2019
Beginner to intermediate
368 pages
7h 18m
Korean
Hanbit Media, Inc.
Content preview from 만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술
288 - 프로그레시브 웹 앱
이제 사용자가 예약할 때마다
addReservation()
함수가 알림 권한
(
이미 부여되지
않았다면
)
을 요청하고 새 알림을 표시할 것입니다
(
그림
10
-
7)
.
그림
10
-
7
신규 예약 알림
10.3
푸시 이벤트 구독하기
이미 첫 번째 알림으로 많은 진전이 있었습니다. 하지만 사용자들에게 정말로 도
움이 되려면 사용자가 앱을 떠난 후에도 알림을 받을 수 있어야 합니다. 이를 위해
서는
Push
API
를 살펴봐야 합니다.
구독 과정을 다시 살펴봅시다
(
그림
10
-
8)
.
먼저 메시징 서버에 접속하여, 이 사용자에 대해 새로운 구독 생성을 요청합니다.
메시징 서버는 해당 사용자에 대한 새 구독 정보를 저장하고 상세 구독 정보를 돌
려줍니다. 그다음 다음 번 사용자에게 메시지를 보낼 때 사용할 수 있도록 전달 받
은 상세 구독 정보를 앱 서버에 저장해야 합니다.
10 사용자에게 푸시 알림 보내기
- 289
그림
10
-
8
푸시 구독 생성하고 저장하기
나의 앱
서버
브라우저
메시징
서버
2
. 구독 상세 정보 저장
(
구독 상세 정보 반환)
1
. 구독 생성
구독을 생성하고 저장하는
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