gpt4 book ai didi

iOS:如何通过推送通知显示警报并无休止地播放声音

转载 作者:行者123 更新时间:2023-11-28 23:41:14 27 4
gpt4 key购买 nike

我正在设计一个类似于“查找我的手机”应用程序的应用程序,它会不断地播放警报声音,即使该应用程序未启动,也会显示警报。如果关闭,警报将打开应用程序。我检查了通知声音,但手机锁定时它只播放 30 秒。有人可以帮我弄这个吗?谢谢你的帮助

最佳答案

根据 Apple 文档,您不能播放超过 30 秒的声音。

Place custom sound files in your app bundle or in the Library/Sounds folder of your app’s container directory. Custom sounds must be under 30 seconds when played. If a custom sound is over that limit, the default system sound is played instead.

这是引用苹果文档链接 - https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/SupportingNotificationsinYourApp.html#//apple_ref/doc/uid/TP40008194-CH4-SW1

关于iOS:如何通过推送通知显示警报并无休止地播放声音,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53394463/

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