One Logo Pool Ball
App Services · IOS API REFERENCE

UserNotifications

Push user-facing notifications to the user’s device from a server, or generate them locally from your app.

35 types

192 callable entries

20 skipped

91% entry coverage

Generated from iOS SDK 27.1. Availability is shown on each declaration; permissions and entitlements still apply.

Types

Functions and constants

get · iOS 10.0+

UNErrorDomain

TypeScript
const UNErrorDomain: string
Swift declaration
let UNErrorDomain: String
get · iOS 10.0+

UNNotificationAttachmentOptionsThumbnailClippingRectKey

TypeScript
const UNNotificationAttachmentOptionsThumbnailClippingRectKey: string
Swift declaration
let UNNotificationAttachmentOptionsThumbnailClippingRectKey: String
get · iOS 10.0+

UNNotificationAttachmentOptionsThumbnailHiddenKey

TypeScript
const UNNotificationAttachmentOptionsThumbnailHiddenKey: string
Swift declaration
let UNNotificationAttachmentOptionsThumbnailHiddenKey: String
get · iOS 10.0+

UNNotificationAttachmentOptionsThumbnailTimeKey

TypeScript
const UNNotificationAttachmentOptionsThumbnailTimeKey: string
Swift declaration
let UNNotificationAttachmentOptionsThumbnailTimeKey: String
get · iOS 10.0+

UNNotificationAttachmentOptionsTypeHintKey

TypeScript
const UNNotificationAttachmentOptionsTypeHintKey: string
Swift declaration
let UNNotificationAttachmentOptionsTypeHintKey: String
get · iOS 10.0+

UNNotificationDefaultActionIdentifier

TypeScript
const UNNotificationDefaultActionIdentifier: string
Swift declaration
let UNNotificationDefaultActionIdentifier: String
get · iOS 10.0+

UNNotificationDismissActionIdentifier

TypeScript
const UNNotificationDismissActionIdentifier: string
Swift declaration
let UNNotificationDismissActionIdentifier: String
static · iOS 10.0+

localizedUserNotificationString

TypeScript
static localizedUserNotificationString(key: string, arguments_?: (Array<unknown>) | null): string
Swift declaration
class func localizedUserNotificationString(forKey key: String, arguments: [Any]?) -> String

Skipped declarations

20 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UNNotificationRequest.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

UNUserNotificationCenter.init()

inherited init: clang: 'init' is unavailable

UNNotificationAttachment.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

UNCalendarNotificationTrigger.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

UNLocationNotificationTrigger.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

UNNotificationTrigger.init()

inherited init: clang: 'init' is unavailable

UNPushNotificationTrigger.init()

inherited init: clang: 'init' is unavailable

UNTimeIntervalNotificationTrigger.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

UNNotificationSound.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

UNNotificationAttributedMessageContext.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

UNNotificationAction.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

UNTextInputNotificationAction.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

UNNotification.init()

inherited init: clang: 'init' is unavailable

UNNotificationResponse.init()

inherited init: clang: 'init' is unavailable

UNTextInputNotificationResponse.init()

inherited init: clang: 'init' is unavailable

UNNotificationCategory.init()

inherited init: cannot prove legal (class declares 3 custom initializers)

UNNotificationActionIcon.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

UNNotificationSettings.init()

inherited init: clang: 'init' is unavailable

protocol implementation UNUserNotificationCenterDelegate.userNotificationCenter(_:willPresent:)

synchronous protocol result requires an active JS-thread call; delegate invocations can escape it

protocol implementation UNUserNotificationCenterDelegate.userNotificationCenter(_:didReceive:)

async protocol requirement cannot propagate callback failure