OGeek|极客世界-中国程序员成长平台

标题: ios - UNNotificationSound.default() 是什么声音? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 19:29
标题: ios - UNNotificationSound.default() 是什么声音?

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

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

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



Best Answer-推荐答案


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

我认为系统不会让您更改默认声音。如果您是 App 的开发者,您必须在 App 中提供您自己的声音文件。

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






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4