app:app只需要放一个声音文件就行,没别的设置
服务器:服务器向苹果APNs服务器发送消息的时候,需要设置sound字段:1
2
3
4
5
6
7
8{
aps =
{
alert = "message";
sound = "sound file name.extension";
badge = 1;
};
}
iOS 关于推送消息的设置
Title:iOS 关于推送消息的设置
Author:Lynn Cheng
Created:2016-07-14, 11:07:38
Updated:2016-07-14, 11:18:11
Full URL:http://lynncheng.github.io/2016/07/14/apns-sound/
License: "CC BY-NC-SA 4.0" Keep Link & Author if Distribute.