Push Notifications
APNs, UNUserNotificationCenter, remote notifications, local notifications, rich content
1What is UNUserNotificationCenter?
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.
2What are the two types of notification authorization available when initially requesting?
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.
3What is the main difference between a local notification and a remote notification?
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.
How to register an application to receive remote notifications from APNs?
What are the main components of a UNNotificationContent?
+15 питань зі співбесід
Інші теми співбесід iOS
Swift Basics
Swift Language Essentials
UIKit Fundamentals
UIViewController Lifecycle
UserDefaults & Keychain
Application Lifecycle
Auto Layout & Constraints
UITableView & UICollectionView
SwiftUI Basics
SwiftUI State Management
SwiftUI Navigation
Networking & URLSession
Codable & JSON Parsing
Core Data
Protocol Oriented Programming
MVVM Architecture
Unit Testing & XCTest
UI Testing
Xcode & Build System
Swift Package Manager
Memory Management & ARC
Combine Framework
Concurrency & async/await
iOS Design Patterns
Performance Optimization
Security & Encryption
SwiftUI Advanced
iOS Application Architecture
Опануй iOS для наступної співбесіди
Отримай доступ до всіх питань, flashcards, технічних тестів, вправ code review та симуляторів співбесід.
Почни безкоштовно