Merge pull request #985 from giladno/patch-1
allow using ringtones from RingtoneManager
This commit is contained in:
commit
546e3f5d8a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user