2

I am working on an iPhone application, where i need to store an audio file(which i get from my server) as a ringtone on the iPhone device programmatically. Is it possible to do that? What are the APIs supported for it. And, Does the Appstore allow such apps to be released?

Thanks.

edc1591
  • 10,146
  • 6
  • 40
  • 63
Stella
  • 1,728
  • 5
  • 41
  • 95

2 Answers2

4

Most probably the user will have to do it himself. You can ease-up a bit this process for him using iTunes file sharing. See:

How to add a ringtone from an application to ringtones of iphone?

You could also check the code of ringtonesapp.

Community
  • 1
  • 1
Rok Jarc
  • 18,765
  • 9
  • 69
  • 124
  • 1
    No, i am asking can we do this from an iOS app itself, not thru desktop app. – Stella Feb 26 '12 at 21:58
  • I understand: but i think this is as close (iTunes file sharing) as you can get. – Rok Jarc Feb 26 '12 at 22:12
  • Could you also explain a bit about how the file will be shared to iTunes from my app? Automatically? (or) We have to sync my app first manually to iTunes? – Stella Feb 27 '12 at 06:31
  • For details see mbehan's answer in above SO link. 'Sync' with iTunes will be done automatically (from your code) - user will have access to your ringtones trough iTunes - therefore he will be able to set them as ringtones for his phone. – Rok Jarc Feb 27 '12 at 09:19
  • it possible contact number set ringtone iOS – Ramani Hitesh Oct 23 '18 at 09:15
3

No, you can't do this. There's no public API for this.

If you're doing this on a jailbroken device, you can just replace one of the default Apple ringtones with your ringtone.

edc1591
  • 10,146
  • 6
  • 40
  • 63