티스토리 뷰

 

let center = UNUserNotificationCenter.current()
center.getNotificationSettings { settings in
    guard (settings.authorizationStatus == .authorized) ||
          (settings.authorizationStatus == .provisional) else { return }

    if settings.alertSetting == .enabled {
        // Schedule an alert-only notification.
    } else {
        // Schedule a notification with a badge and sound.
    }
}

 

'macOS, iOS' 카테고리의 다른 글

[iOS] 시간 milliseconds로 받아오기  (0) 2021.06.03
[iOS] 인스타그램에서 열기  (0) 2021.06.01
[iOS] 애플 로그인 - SwiftUI  (1) 2021.05.28
[iOS] Facebook 로그인 - SwiftUI  (0) 2021.05.28
[iOS] UserDefaults에서 값 지울때  (0) 2021.05.26
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/10   »
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
글 보관함