iPhone 推送通知声音有限制吗?

发布于 2024-08-05 07:34:46 字数 123 浏览 3 评论 0原文

有人知道 iPhone 应用程序收到推送通知时可以播放的声音有什么限制吗?具体来说,有最大声音长度吗?

另外,我假设声音的音量将与用户设置的铃声音量相匹配,如果设置为振动模式,手机将振动而不是播放声音。这是正确的吗?

Does anybody know of any limitations on the sounds that can be played when an iPhone app receives a push notification? Specifically, is there a maximum sound length?

Also, I am assuming that the volume of the sound will match whatever the user has set their ringer volume to, and if set to vibrate mode, the phone will vibrate instead of playing a sound. Is this correct?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

柠北森屋 2024-08-12 07:34:47

我测试了推送通知音频警报的最大长度,毫不奇怪,结果是 30 秒。任何较长的音频文件都会导致播放内置的三音警报。

I have tested the maximum length of a push notification audio alert, which not surprisingly turned out to be 30 seconds. Any longer audio files will result in the built-in Tri-tone alert being played instead.

别念他 2024-08-12 07:34:47

我不确定,但根据各种 API 限制,我猜测长度为 30 秒。最大限度。是的,铃声的音量就是声音的音量。与振动模式相同

I don't know for sure, but based on various API limitations I would guess the length would be 30 sec. max. And yes, the volume of the ringer is the volume of the sound. Same with vibrate mode

╭⌒浅淡时光〆 2024-08-12 07:34:47

您可能必须为此考虑“通知有效负载”。您还可以拥有自定义警报声音。
请参阅:通知负载

You may have to consider "Notification Payload" for that.You can also have Custom Alert Sounds.
See this:Notification Payload

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文