通知标识消失后,提示音停止



当应用程序在后台时,我需要长时间(20-25秒)播放通知声音。我在项目中导入了我的自定义声音文件(持续时间25秒)。自定义声音正在播放,但问题是它只播放,只要通知徽章仍然在屏幕上,即3-4秒。一旦徽章消失,通知声音也停止。我该怎么办?

在这个链接中管理应用程序的通知支持,转到章节标题Preparing Custom Alert Sounds

它提到,Custom sounds must be under 30 seconds when played. If a custom sound is over that limit, the default system sound is played instead.

可能重复限制iPhone推送通知声音?

最新更新