且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

自定义的iOS推送通知的声音

更新时间:2023-02-26 21:05:43

据该推送通知指南:

您可以在AIFF,WAV或CAF文件包中的音频数据。然后,在
  X code,声音文件添加到您的项目作为非本地化资源
  的应用程序包。

You can package the audio data in an aiff, wav, or caf file. Then, in Xcode, add the sound file to your project as a nonlocalized resource of the application bundle.

这并不是说有关的MP3什么。我用它的AIF文件的工作。我会坚持到什么苹果指定。

It doesn't say anything about MP3s. I've used aif files which worked. I'd stick to what Apple specifies.