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

标签 ios audio notifications

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

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

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

最佳答案

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

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

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

相关文章:

ios - 遍历iOS中plist的字典数组

php - 通过PHP流文件播放的AWS s3存储桶视频未播放音频

c++ - 在 NodeJS 中将 Raw 流转换为 Wav 流

ios - 当应用程序处于后台且用户未通过推送通知进入时,未收到后台获取远程通知

php - 每秒查询一次表以获取通知。这是一个好习惯吗?

iphone - Cocos Denshion : Play sound effect in sync with music

ios - 今天的小部件高度动态 - iOS

ios - 应用程序关闭时从本地通知中选择表格 View 单元格

Android 通知通过 NotifiationChannel.enableVibration(false) 振动

javascript - slider 单击时的jQuery音频持续时间更改