iOS

Push Notifications

APNs, UNUserNotificationCenter, remote notifications, local notifications, rich content

18 면접 질문·
Mid-Level
1

What is UNUserNotificationCenter?

답변

UNUserNotificationCenter is the central class for managing all local and remote notifications on iOS 10+. It replaces the deprecated UILocalNotification API and provides a unified interface for requesting permissions, scheduling notifications, and handling user interactions. Using UNUserNotificationCenter is essential for implementing a modern and compatible notification strategy.

2

What are the two types of notification authorization available when initially requesting?

답변

iOS provides two authorization modes: provisional authorization allows sending notifications directly to the notification history without displaying an alert, while full authorization triggers an explicit permission request. Using provisional authorization is useful for testing engagement before requesting intrusive permission. The choice depends on the application strategy.

3

What is the main difference between a local notification and a remote notification?

답변

A local notification is scheduled by the application itself and delivered by the local system, while a remote notification (push) is sent by a server via APNs and depends on network connectivity. Local notifications always work without connection. Use local notifications for internal reminders and remote notifications for server-client communications.

4

How to register an application to receive remote notifications from APNs?

5

What are the main components of a UNNotificationContent?

+15 면접 질문

다음 면접을 위해 iOS을 마스터하세요

모든 질문, flashcards, 기술 테스트, 코드 리뷰 연습, 면접 시뮬레이터에 접근하세요.

무료로 시작하기