live activity with push notification custom sound

在项目中用到live activity,并且使用pushnotification来更新,其中sound是用自定义的,音频差不多5秒导入主工程中main bundle ,然后测试远程推送的Payload格式如下 { "aps": { "timestamp": 1712964986737, "event": "update", "sound": "socReminder10.mp3", "content-state": { "bindTime": 1712963986737, "soc": 38, "status": 1, "updateTime": 1712963986737 }, "alert": { "title": "电量低提示", "body": "您的电量已经低于40,请尽快换电" }, "mutable-content": 1, "badge": 0 } } 虽然收到推送的消息并更新但是声音还是默认的声音,不是我定义的声音,请问这个有没有什么解决方案 对了在正常的推送中是可以播放自定义的声音,唯独是live activity 的推送不行,希望能解决我这个问题,感谢,thanks

live activity with push notification custom sound
 
 
Q