Android 推送在小米机型的声音问题

根据 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);

有两个问题请教下:

  1. 推送的sound应该是不带 android.resource的吧, 需要你们确认下。
  2. 我推送的sound不管是
    cn.gtscn.smarthome/2131099655 还是
    android.resource://cn.gtscn.smarthome/2131099655
    在小米note3上面没有起作用,在android studio里面打断点了,这个notification.sound也是成功赋值了的。但是没起作用。很诡异。不知为何。自己写的reciever里面,同样的value,同样经过Uri.parse后却是可以响的。很诡异。求助。

感谢。

你好,这个问题还在确认中。请稍等。