gpt4 book ai didi

ios - UNNotificationSound.default() 是什么声音?

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:05:30 26 4
gpt4 key购买 nike

我的 iOS 应用使用默认的通知声音:

        let content = UNMutableNotificationContent()
content.sound = UNNotificationSound.default()

我听到了名为“Tri-Tone”的声音,尽管我的设置面板“声音” View 中的任何地方都没有设置该声音。我希望听到为“提醒警报”设置的声音。谁能解决这个问题?

最佳答案

根据official documentation它播放通知的默认声音

我认为系统不会让您更改默认声音。如果您是应用程序的开发者,则必须随应用程序提供您自己的声音文件。

关于ios - UNNotificationSound.default() 是什么声音?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47932529/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com