gpt4 book ai didi

ios - 推送通知的自定义声音不起作用

转载 作者:可可西里 更新时间:2023-11-01 06:13:01 24 4
gpt4 key购买 nike

我为推送通知添加了自定义声音,但它不起作用。我已按照以下步骤操作。

  1. Added custom sounds with extension .caf (sound is length of 8 seconds)
  2. Added it to bundle resource
  3. Sent the following payload from server
"aps" : {
"alert" : "Hey you got a push notification.",
"badge" : 1,
"sound" : "ringtone.caf"
}

捆绑资源的屏幕截图。 enter image description here

但是它不起作用:(还需要什么吗?

最佳答案

卸载并重新安装应用程序对我有用!

关于ios - 推送通知的自定义声音不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47329000/

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