diff --git a/ios/RNFIRMessaging.m b/ios/RNFIRMessaging.m index 3c070b2d9efba27f279c5859ef72144c5adb260b..3e60d7d9f997a2e764644345a544319229ede981 100644 --- a/ios/RNFIRMessaging.m +++ b/ios/RNFIRMessaging.m @@ -45,9 +45,11 @@ RCT_ENUM_CONVERTER(NSCalendarUnit, content.body =[RCTConvert NSString:details[@"body"]]; NSString* sound = [RCTConvert NSString:details[@"sound"]]; if(sound != nil){ - content.sound = [UNNotificationSound soundNamed:sound]; - }else{ - content.sound = [UNNotificationSound defaultSound]; + if ([sound isEqual:@"default"]) { + content.sound = [UNNotificationSound defaultSound]; + } else { + content.sound = [UNNotificationSound soundNamed:sound]; + } } content.categoryIdentifier = [RCTConvert NSString:details[@"click_action"]]; content.userInfo = details;