Instance Property

badgeSetting

The setting that indicates whether badges appear on your app’s icon.

Declaration

iOS, Mac Catalyst, tvOS
@property(readonly, nonatomic) UNNotificationSetting badgeSetting;
macOS
@property(readonly, atomic) UNNotificationSetting badgeSetting;

Discussion

When the value of this property is UNNotificationSettingEnabled, the app is authorized to badge its icon. The system tries to badge your app's icon when the badge property of a UNNotificationContent object contain a value, or when the aps dictionary in a remote notification contains the badge key.

See Also

Getting Device-Specific Settings

notificationCenterSetting

The setting that indicates whether your app’s notifications appear in Notification Center.

lockScreenSetting

The setting that indicates whether your app’s notifications appear on a device’s Lock screen.

carPlaySetting

The setting that indicates whether your app’s notifications appear in CarPlay.

alertSetting

The authorization status for displaying alerts.

soundSetting

The authorization status for playing sounds for incoming notifications.

criticalAlertSetting

The authorization status for playing sounds for critical alerts.

announcementSetting

The setting that indicates whether Siri can announce your app’s notifications.

UNNotificationSetting

Constants that indicate the current status of a notification setting.