System Sound Path

I have a system sound( eg: Voicemail.caf) to play through AVAudioPlayer.

It has different location in iPhone and iPad /System/Library/Audio.

Is there a interface to get path of system sound directly rather than browsing through system directories.

If not, could we include this sound file in our app bundle(eg. Resources). Are there chances of App rejection/licensing part if we do so?

Your iOS app cannot utilize system sounds.


See https://developer.apple.com/documentation/audiotoolbox/1405202-audioservicesplayalertsound


"Note

System-supplied alert sounds and system-supplied user-interface sound effects are not available to your iOS application. For example, using the

kSystemSoundID_UserPreferredAlert
constant as a parameter to the
AudioServicesPlayAlertSound
function will not play anything."


As for risking rejection, yes - see the ASRGs, section 2.5.9 Software Requirements

System Sound Path
 
 
Q