我为推送通知添加了自定义声音,但它不起作用。我已按照以下步骤操作。
- Added custom sounds with extension .caf (sound is length of 8 seconds)
- Added it to bundle resource
- Sent the following payload from server
"aps" : {
"alert" : "Hey you got a push notification.",
"badge" : 1,
"sound" : "ringtone.caf"
}
但是它不起作用:( 还需要什么吗?
最佳答案
卸载并重新安装应用程序对我有用!
关于ios - 推送通知的自定义声音不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47329000/