我正在使用FCM将推送通知从服务器发送到iOS设备,但是我成功获取了通知,但无法播放自定义通知声音。
这是我的有效载荷
{
"to":"myToken",
"notification":{
"title":"new message",
"body":"Hello World!",
"sound":"tweet_sent.caf",
"badge": 3
}
}
注意:我也将'tweet_sent.caf'文件添加到Xcode包中
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句