Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Assign sound 60 seconds length to UILocalNotification

Tags:

ios

my local notification is working so nicely, there is sound name call Alarm.wav 22 seconds length that I am assigning to local notification like

notificaiton.soundName = @"Alarm.wav";

and my local notification ringing 22 seconds

now my question is , is there any limitation to assigning sound to UILocalNotification with particular length limit

because when I am assigning Alarm.wav 60 seconds length then it's not working

is there any solution ?

Thanks in Advance

like image 363
Bhavesh Lathigara Avatar asked Jan 21 '13 11:01

Bhavesh Lathigara


2 Answers

If you read the documentation of UILocalNotification it states that the soundName property will only play for a maximum of 30 seconds.

Sounds that last longer than 30 seconds are not supported. If you specify a file with a sound that plays over 30 seconds, the default sound is played instead.

like image 52
rckoenes Avatar answered Nov 09 '22 09:11

rckoenes


you can take this sound file length maximum 30 sec..

more than 30 sec length file not taken by notification.

Sounds that last longer than 30 seconds are not supported...By apple doc..

just take a look at this Apple document

like image 30
Sarafaraz Babi Avatar answered Nov 09 '22 09:11

Sarafaraz Babi