How do I play the default Phone ringtone programmatically?

Newbee picture Newbee · Sep 25, 2012 · Viewed 7.5k times · Source

I have been working on a conference related app. I want to show ringing notification for the incoming call. I have tried with AVAudioPlayer, and it worked fine for custom sounds. My question is, is it possible to get default ringtone from iPhone (user selected tone in settings) and play for my app?

thanks for your valuable suggestions...

Answer

dreamlax picture dreamlax · Sep 25, 2012

Someone has asked a similar question here but overall it does not appear possible, at least if you want to distribute your application through the App Store. On a jailbroken phone, you may find this answer useful.