根据 avoscloud-push-v3.3.jar 里面com.avos.avoscloud.AVPushConnectionManager
的代码看,第297行声音部分:
if(sound != null && sound.trim().length() > 0) {
notification.sound = Uri.parse("android.resource://" + sound);
}
manager.notify(notificationId, notification);
有两个问题请教下:
- 推送的sound应该是不带 android.resource的吧, 需要你们确认下。
- 我推送的sound不管是
cn.gtscn.smarthome/2131099655
还是
android.resource://cn.gtscn.smarthome/2131099655
在小米note3上面没有起作用,在android studio里面打断点了,这个notification.sound
也是成功赋值了的。但是没起作用。很诡异。不知为何。自己写的reciever里面,同样的value,同样经过Uri.parse后却是可以响的。很诡异。求助。
感谢。