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

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

by 한민주, 양찬석, 탈 아터
April 2019
Beginner to intermediate
368 pages
7h 18m
Korean
Hanbit Media, Inc.
Content preview from 만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술
10 사용자에게 푸시 알림 보내기
- 279
Notification
.
requestPermission
().
then
(
function
(
permission
)
{
if
(
permission
===
"
granted
")
{
new Notification
("
Shiny
");
}
});
이 코드를 브라우저 콘솔에서 실행하면 알림 표시 권한 요청 대화 상자가 나타나
야 하고, 뒤이어 "
Shiny
"라는 제목의 간단한 알림이 보여야 합니다
(
그림
10
-
4)
.
그림
10
-
4
가능한 가장 간단한 데스크톱 알림
알림 설정 권한 변경하기
권한 대화상자가 뜨지 않는다면, 이전에 이미 해당 사이트에 대한 알림 권한을 거부
했거나 승인했을 수 있습니다.
권한 대화상자에서 한번 선택을 하면 브라우저는 해당 정보를 기억하고, 동일한 근원
의 페이지에서 권한을 요청해도, 알림 권한 대화상자를 표시하지 않을 것입니다. 개
발 중에 이 설정을 수시로 초기화하고 싶을 수 있습니다.
데스크 탑 크롬에서는 주소 창의 사이트
URL
왼쪽의 아이콘을 클릭하여 알림 설정을
변경할 수 있습니다. 안드로이드 크롬이라면 브라우저 메뉴에서 설정 변경 메뉴를 찾
을 수 있습니다. 설정
(Setting
)
을 선택하고, 사이트 설정
(Site
setting
)
을 클릭합니다.
안타깝게도 데스크톱에서 잘 작동하던 이전 코드가 모바일 기기에서는 작동하지 ...
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