I think my problem is pretty simple I just can not figure it out any help would be greatly appreciated.
I wish to play the ringtone or notification sound based on payload state. My Java is nonexistent.
I think I need something like this
Uri
notification =
RingtoneManager.getDefault(RingtoneManager.TYPE_NOTIFICATION);
Ringtone
r = RingtoneManager.getRingtone(getApplicationContex(),
notification);
r.play();
Thank you
CRPatterson