I’m adding a notificationCompat to my app, it works fine, but now I would like to add my own sound to the notification, so, I read that is:
.setSound(Uri sound);
But, I cant get the uri, how should I do this? where should the .wav file in my project?
To add your own notiffication sound follow this step. edit in your service class.
Put sound file in raw folder. Edit com.adroid.alarm with your package name.