Contents

soundSetting

The authorization status for playing sounds for incoming notifications.

Declaration

var soundSetting: UNNotificationSetting { get }

Discussion

When the value of this property is UNNotificationSetting.enabled, the system authorizes the app to play sounds. The system tries to play a sound when the sound property of the UNNotificationContent object contains a value, or when the aps dictionary in a remote notification contains the sound key.

See Also

Getting Device-Specific Settings