Задачу решил.
Вот измененная процедура, ну и добавил вытягивание параметра sound
private Builder buildNotification(String msgTitle, String msgText, String msgSound, PendingIntent contentIntent) {
int icon = this.mContext.getApplicationContext().getApplicationInfo().icon;
Builder mBuilder = new Builder(this.mContext);
mBuilder.setSmallIcon(icon);
mBuilder.setTicker(msgTitle);
mBuilder.setContentTitle(msgTitle);
mBuilder.setContentText(msgText);
mBuilder.setContentIntent(contentIntent);
// savage
if (msgSound == "") {
mBuilder.setSound(RingtoneManager.getDefaultUri(2));
}
else
{
mBuilder.setSound(Uri.parse("android.resource://" + this.mContext.getPackageName() + "/raw/"+msgSound));
}
//
return mBuilder;
}
Звуковой файл надо добавить в Deployment
Расположение res/raw/
При формировании push-сообщения имя файла указывается без расширения. К примеру, если звуковой файл был event1.mp3, то в пуше посылаем "sound":"event1"
Во вложении патченый файл.
Сборка fmx.jar и classes.dex как в этой теме
NotificationPublisher.zip