Merge pull request #985 from giladno/patch-1

allow using ringtones from RingtoneManager
This commit is contained in:
Chris Bianca
2018-04-16 21:47:49 +01:00
committed by GitHub

View File

@@ -560,7 +560,9 @@ public class RNFirebaseNotificationManager {
}
private Uri getSound(String sound) {
if (sound.equalsIgnoreCase("default")) {
if (sound.contains("://")) {
return Uri.parse(sound);
} else if (sound.equalsIgnoreCase("default")) {
return RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
} else {
int soundResourceId = getResourceId("raw", sound);