본문 바로가기 메뉴 바로가기

GonsiOS

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

GonsiOS

검색하기 폼
  • 분류 전체보기 (106)
    • iOS Swift + UIKit (45)
    • iOS Library (21)
    • iOS etc. (20)
    • iOS SwiftUI (18)
    • macOS (2)
  • 방명록

push (1)
728x90
반응형
iOS Swift 푸시 알림 권한 Push Notification permission request authorization

안녕하세요 Gons 입니다. 오늘은 푸시 알림 권한 요청을 해보겠습니다. 권한 요청 매서드를 작성해주세요. func requestNotificationPermission(){ UNUserNotificationCenter.current().requestAuthorization(options: [.alert,.sound,.badge], completionHandler: {didAllow,Error in if didAllow { print("Push: 권한 허용") } else { print("Push: 권한 거부") } }) } 이렇게 작성하면 권한을 요청하고 리퀘스트를 받을 수 있습니다. viewDidLoad 에서 실행해보겠습니다. override func viewDidLoad() { super.viewD..

iOS Swift + UIKit 2020. 7. 16. 10:01
728x90
반응형
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • indicator
  • Language
  • 로컬라이징
  • 인디케이터
  • 다국어
  • localizing
  • ios
  • custom segment
  • TabBar
  • localizable
  • Authorization
  • Apple
  • TabView
  • AppStore
  • 아이오에스
  • 심사
  • swiftUI
  • 리젝
  • 프로그레스
  • 현지화
  • permission
  • 엑스코드
  • picker
  • connect
  • SWIFT
  • 스위프트
  • macos
  • Reject
  • Xcode
  • 테이블뷰
more
«   2026/01   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바