作者whitefur (白毛)
看板MacDev
标题[问题] APNs sound default
时间Thu Nov 7 18:09:20 2013
APNs无法播预设的音效
http://0rz.tw/Rek1D
Apple的文件上写说如果sound的值给default就会播预设的提示音
但是我怎麽测都是
完全没有声音
这是我在didReceiveRemotNotification收到的
都
aps = {
alert = "You have a new frame from momo";
badge = 1;
sound = default;
};
badge跟alert都能正常的显示
请问有人用过sound吗?
感谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 111.243.88.24
1F:推 kiii210:register notification type的时候有sound吗? 11/07 18:33
2F:→ kiii210:不知道跟这个有没有关系 11/07 18:33
3F:→ nobody1:手机设定没开的机率也不小 11/08 00:15
4F:→ whitefur:五支测试的手机都有开 11/08 10:13
5F:→ nobody1:[设定][通知][包含] 看一下有没有提示声 11/08 10:24
找到原因了
我在registerForRemoteNotificationTypes:忘了加UIRemoteNotificationTypeSound
※ 编辑: whitefur 来自: 114.36.51.29 (11/08 10:56)
6F:推 kiii210:被我赛到了 哈哈哈 11/08 10:59