Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play alert sound (same as default message ringtone)

Is it possible to play some default sounds, such as when an incoming SMS/push is received?

If iOS SDK does not bundle these sound files, where can I download the same sounds?

like image 647
samwize Avatar asked Mar 09 '11 18:03

samwize


People also ask

What does it mean to default notification sound?

This option allows you to set the default ringtone to be played when you receive a text message or other notification for which you have enabled sounds, such as an incoming email.


1 Answers

Yes it is possible, but they use undocumented enum values, that means you should not use it on AppStore apps.

AudioServicesPlaySystemSound(1003);

iOS SDK does not bundle these sound files, but you can find them on the device in the /System/Library/Audio/UISounds/ folder. However, I believe these files are copyrighted.

Why not create a sound yourself?

like image 88
kennytm Avatar answered Oct 17 '22 02:10

kennytm