iphone - UILocalNotification Or EventKIt -
Is there any way to trigger any kind of work based on a date type. My problem is that I want to play sound (alarm) on a specific date, it works fine using UILLocal notifications, but it plays a little sound, and I want to play an infinite sound instead. How can I achieve this goal .. Waiting for your initial reaction. Thanks
This property indicates that this property only plays for maximum 30 seconds.
It seems that is ignored for more than 30 seconds and instead the default sound is played.
When adding custom sound, be sure that the sound is in the right format (linear PCM or IMA 4)
You can convert it to wav and mp3 using :
afconvert -f caff -d LEI16 @ 44100-c 1 in.wav out.caf
If you were wondering what is afcomvert .. it is nothing but The command line program is the CAF container format.
Sometimes the emulator will not play custom sound, but the device does.
Comments
Post a Comment