UILocalNotification custom sound is not playing in iOS7

前端 未结 9 1581
别那么骄傲
别那么骄傲 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:39

    Please try first whether setting->notificationcenter->sounds is not off.Then check whether in setting->sounds->slider is not on zero.That means if u have sounds on zero that will not allow sound to come up. Hope that helps.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-09 10:47

    Check that the "Sound Effects" is not mute or low. The volume may be high but if the Sound Effects volume is mute then the local notification may not sound. U can increase it when you are in the Home screen of iOS and then press the volume up button.

    0 讨论(0)
提交回复
热议问题