解决方法
是的,你可以做到这一点,但它不是“最好的地方”而是“唯一的地方”:/ Library / Sounds.
Here is the appropriate documentation.
特别是这个:
You can assign the filename of a nonlocalized custom sound in the app’s main bundle (or data container) or you can assign UIlocalnotificationDefaultSoundName to get the default system sound.
还有这个:
For remote notifications in iOS,you can specify a custom sound that iOS plays when it presents a local or remote notification for an app. The sound files can be in the main bundle of the client app or in the Library/Sounds folder of the app’s data container.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。