iOS 自定义推送铃声问题

1.音频文件格式: .aiff 、.wav 、.caf 

2.长度不超过30s

3.加入到工程目录即可 注意确保build phase中被引用

4.apns 消息中 服务端需要提供sound字段 名称+后缀

{  

   "aps":{  

      "alert":"内容",

      "badge":1,

      "sound":"calling.wav",

      "userinfo":{"username":"tom"}

   }

}


测试 卸载重装运行即可

猜你喜欢

转载自blog.csdn.net/u010462316/article/details/79539239
今日推荐