I have a notification that works perfectly, but no sound plays, not even the default sound, I've tried numerous approaches listed on this website to try to get a sound to play but to no avail.
If I create a media player I can play the audio file just fine when the application starts up, but I can't seem to get the file to play when a notification is started.
final Notification.Builder notifyDetailsBuilder = new Notification.Builder(context)
.setContentTitle("Your Jewellery Received A New Message")
.setContentText("Click To View Message")
.setWhen(System.currentTimeMillis())
.setSmallIcon(R.drawable.ic_launcher)
.setAutoCancel(true)
.setContentIntent(intent);
final Notification notifyDetails = notifyDetailsBuilder.getNotification();
mNotificationManager.notify(35178, notifyDetails);
Any help would be greatly appreciated.