본문 바로가기
iOS

[iOS] User Notification

by thoonk: 2020. 12. 29.

로컬과 원격 알림은 앱에서 새로운 데이터를 사용할 수 있게 되면 사용자에게 알리는 방법입니다. 앱이 Foreground에서 실행되지 않는 경우(Background)에도 알림을 사용할 수 있습니다. 

 

  • 로컬 알림은 앱이 알림 세부 정보를 로컬로 구성하고 해당 세부 정보를 시스템에 전달한 다음 앱이 Foreground에 있지 않을 때 알림 전달을 처리합니다. 특정 시간 또는 특정 지리적 위치에 도달했을 때 사용자에게 알리는 캘린더와 할 일 목록 앱과 같은 앱에 적합합니다.
  • 원격 알림은 앱 데이터의 일부 또는 전체가 회사 서버에서 관리되는 경우에 적합합니다. 원격 알림을 사용하여 사용자의 장치에 알림을 푸시할 수 있습니다. 예를 들어, 메시징 앱은 원격 알림을 사용하여 새 메시지가 도착하면 사용자에게 알립니다. Apple Push Notification service (APNs)은 사용자의 장치에 알림을 전달하는 것을 처리합니다. 

로컬과 원격 알림 모두 장치에 표시되는 방식은 동일합니다. 

  • 화면 알림 또는 배너
  • 앱 아이콘의 배지
  • 알림, 배너 또는 배지와 함께 제공되는 소리

알림을 사용하기 위해서는 사용자로부터 권한을 요청해야 합니다. 

 

출처:

developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/index.html#//apple_ref/doc/uid/TP40008194-CH3-SW1

 

Local and Remote Notification Programming Guide: Local and Remote Notifications Overview

Retired Document Important This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid. For the latest information, see User Notifications framework. Local notifications and remote n

developer.apple.com

usernotifications

 

Apple Developer Documentation

 

developer.apple.com

 

'iOS' 카테고리의 다른 글

[iOS] Frame과 Bounds의 차이  (0) 2021.01.12
[iOS] UNUserNotificationCenter를 이용해서 로컬 푸시하기!  (1) 2021.01.05
[iOS] Label에 취소선 긋기  (1) 2020.12.24
[iOS] JSON 파싱  (0) 2020.12.04
[iOS] Dispatch Queue  (0) 2020.11.23

댓글