UILocalNotification custom sound is not playing in iOS7

前端 未结 9 1602
别那么骄傲
别那么骄傲 2020-12-09 10:00

I\'m using UILocalNotification in an application.

In the application there are two sounds which are played conditionally- I have applied proper conditio

9条回答
  •  無奈伤痛
    2020-12-09 10:42

    My guess is your sound isn't formatted appropriately to play by the OS. Make sure your sound is formatted in IMA4 format. Also, make sure your file is in your application bundle, and you should be good to go.

    For more reference and similar question, see this SO question.

    Choose custom sound for Local Notifications

    Here is a link for Apple's Local and Push Notification Guide. It explains the sounds in detail and the default sounds that can be used.

提交回复
热议问题