iOS Notification Function 기능 정리공부방/iOS2019. 7. 2. 13:45
Table of Contents
UNUserNotificationCenterDelegate
//Foreground Notification 처리
func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
completionHandler([.alert,.sound, .badge]) // completionHandler 호출을 해주어야 Notification 노출
}
//Background Notification 처리
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse,
withCompletionHandler completionHandler: @escaping () -> Void) {
}
반응형
'공부방 > iOS' 카테고리의 다른 글
iOS local notification divide (iOS Local Notification 분리) (0) | 2019.07.09 |
---|---|
Tip of Firebase cloud Message payload (0) | 2019.07.03 |
wkwebview native function call from javascript(WKWebView Javascript에서 iOS 함수 호출) (1) | 2019.06.28 |
iOS Firebase Push Notification Setting (0) | 2019.06.13 |
Swift naming rule (0) | 2019.05.08 |
@soycrab :: 꿀맛코딩
행복한 코딩을 위하여!
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!