Contents

badgeSetting

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

Declaration

var badgeSetting: UNNotificationSetting { get }

Discussion

When the value of this property is UNNotificationSetting.enabled, 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