The name of the file containing the sound to play when an alert is displayed.
- iOS 4.0–10.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- watchOS 2.0–3.0Deprecated
For this property, specify the filename (including extension) of a sound resource in the app’s main bundle or
UILocal to request the default system sound. When the system displays an alert for a local notification or badges an app icon, it plays this sound. The default value is
nil (no sound). Sounds that last longer than 30 seconds are not supported. If you specify a file with a sound that plays over 30 seconds, the default sound is played instead.
For information on valid sound resources, see Registering, Scheduling, and Handling User Notifications in Local and Remote Notification Programming Guide.