开发者

Play sound in local notification

开发者 https://www.devze.com 2023-01-31 06:30 出处:网络
I have used Local Notification in my app an successfully generated an alert at correct time.. But when i tried following code for playing sound it does not play....

I have used Local Notification in my app an successfully generated an alert at correct time..

But when i tried following code for playing sound it does not play....

localNot.soundName =@"Ghulam Ali-Chamkte Chaad Ko.mp3";

Can anyone tell me the reason....Does the playing length of sound 开发者_Go百科file affects


According to the Apple Developer Documentation, you need to use "aiff", "caf" or "wav" files.

The link provided shows some ways of converting audio to these formats on your mac.

0

精彩评论

暂无评论...
验证码 换一张
取 消