Interface: NotificationIOS

The interface for iOS specific options which are applied to a notification.

To learn more about iOS notifications, view the iOS documentation for full examples and usage.

Platform

ios

Properties

attachments?

optional attachments: IOSNotificationAttachment[]

Optional array of IOSNotificationAttachment interfaces.

Attachments allow audio, image, or video content to be displayed with the notification, enriching the user's experience.

View the Attachments documentation for more information and usage examples.

badgeCount?

optional badgeCount: null | number

The application badge count number. Set to null to indicate no change, or 0 to hide.

categoryId?

optional categoryId: string

The id of a registered IOSCategory (via the setNotificationCategories API) that will be used to determine the appropriate actions to display for the notification.

communicationInfo?

optional communicationInfo: IOSCommunicationInfo

Optional property for communication notifications

Platform

ios iOS >= 15

critical?

optional critical: boolean

If the notification is a critical alert set this property to true; critical alerts will bypass the mute switch and also bypass Do Not Disturb.

Platform

ios iOS >= 12

criticalVolume?

optional criticalVolume: number

The optional audio volume of the critical sound; a float value between 0.0 and 1.0.

This property is not used unless the critical: true option is also set.

Platform

ios iOS >= 12

foregroundPresentationOptions?

optional foregroundPresentationOptions: IOSForegroundPresentationOptions

Optional property to customise how notifications are presented when the app is in the foreground.

By default, Notifee will show iOS notifications in heads-up mode if your app is currently in the foreground.

interruptionLevel?

optional interruptionLevel: IOSNotificationInterruptionLevel

Value that indicate the importance and delivery timing of a notification.

Platform

ios iOS >= 15

launchImageName?

optional launchImageName: string

The launch image that will be used when the app is opened from this notification.

sound?

optional sound: string

The name of the sound file to be played. The sound must be in the Library/Sounds folder of the app's data container or the Library/Sounds folder of an app group data container.

If the file is not found in a container, the system will look in the app's bundle.

Use 'default' to use the default system sound.

summaryArgument?

optional summaryArgument: string

The argument that is inserted in the IOSCategory.summaryFormat for this notification.

See IOSCategory.summaryFormat.

Platform

ios iOS >= 12

summaryArgumentCount?

optional summaryArgumentCount: number

A number that indicates how many items in the summary are being represented.

For example if a messages app sends one notification for 3 new messages in a group chat, the summaryArgument could be the name of the group chat and the summaryArgumentCount should be 3.

If set, value cannot be 0 or less.

See IOSCategory.summaryFormat.

Platform

ios iOS >= 12

targetContentId?

optional targetContentId: string

The identifier for the window to be opened when the user taps a notification.

This value determines the window brought forward when the user taps this notification on iPadOS.

Platform

ios iOS >= 13

threadId?

optional threadId: string

A unique id for the thread or conversation related to this notification. This will be used to visually group notifications together.