ios - iOS 如何在 Shared/AppGroup/xxx/Library/Sounds 中播放自定义通知声音文件
问题描述
我有一个自定义通知声音的音频文件,但是当该文件位于应用程序容器目录的 /Library/Sounds 目录中时,它可以工作。当文件位于应用程序的共享组容器目录之一的 /Library/Sounds 目录中时,它不起作用,为什么? https://developer.apple.com/documentation/usernotifications/unnotificationsound
解决方案
它仅适用于 iOS 13 + iOS12.1~13 本地通知使用 iOS 10~12.1 自定义使用 AVFoundation