lunchScreen/Interview_Questions

Push Notification 방식에 대해 설명하시오.

Opened this issue · 1 comments

Push Notification 방식에 대해 설명하시오.
  • Push Notification이란 App에 대한 알림 Message가 나오는 방식을 의미합니다.
  • Push Notification은 다음 세 가지 작업을 할 수 있습니다.
    • 짧은 text message 표시
    • 소리 울리기
    • 앱 아이콘에 badge 숫자 설정
  • iOS에서는 오직 APNs를 통해서만 Push Notification을 사용 할 수 있습니다.
  • Push Notification을 사용하기 위해서는 다음과 같은 과정이 필요합니다.
      1. App이 APNs에 Device Token을 요청
      1. APNs가 App에 Device Token을 보냄
      1. App이 Push Server에 Device Token을 보냄
      1. Push Server가 APNs에 Device Token과 Data를 보냄
      1. APNs가 Device에 Token으로 Data를 보냄
  • Push Notification을 보낼 수 있는 Data는 JSON 형태여야 하고, payload가 256bytes를 초과하지 않아야 합니다.