我需要播放通知声音很长一段时间(20-25秒),当应用程序是在后台。我已经在项目中导入了我的自定义声音文件(持续时间为25秒)。自定义声音正在播放,但问题是它只在通知徽章仍在屏幕上播放,即3-4秒。一旦徽章消失,通知声音也会停止。我该怎么办?
发布于 2022-11-06 09:07:05
在这个链接管理应用程序的通知支持中,转到标题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推送通知声音的限制?
https://stackoverflow.com/questions/74334398
复制相似问题