ios - UNNotificationSound.default() 是什么声音?
<p><p>我的 iOS 应用使用默认通知声音:</p>
<pre><code> let content = UNMutableNotificationContent()
content.sound = UNNotificationSound.default()
</code></pre>
<p>我听到了一种叫做“Tri-Tone”的声音,尽管我的设置面板声音 View 中没有设置该声音。我希望听到为“提醒警报”设置的声音。谁能解决这个问题?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>根据<a href="https://developer.apple.com/documentation/usernotifications/unnotificationsound/1649030-default" rel="noreferrer noopener nofollow">official documentation</a>它会播放<em>通知的默认声音</em>。</p>
<p>我认为系统不会让您更改默认声音。如果您是 App 的开发者,您必须在 App 中提供您自己的声音文件。</p></p>
<p style="font-size: 20px;">关于ios - UNNotificationSound.default() 是什么声音?,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/47932529/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/47932529/
</a>
</p>
页:
[1]