I know this question has been answered before, but still, I can't make it work. I already put the mp3 into the raw folder and I know the route to it is valid because I tested with the Ringtone and MediaPlayer class. The notification is created fine but without sound (And I have the volume at max on my device). Here's my code
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context)
.setLargeIcon(icon)
.setSmallIcon(R.drawable.logo)
.setContentTitle(notification.getTitle())
.setContentText(notification.getBody())
.setSound(sound)
.setPriority(Notification.PRIORITY_HIGH);
mBuilder.setContentIntent(contentIntent);
Notification mNotification = mBuilder.build();
mNotification.sound = sound;
NotificationManager mNotificationManager = (NotificationManager) context
.getSystemService(Context.NOTIFICATION_SERVICE);
mNotificationManager.notify(MESSAGE_NOTIFICATION_ID, mNotification);