From 470e92397f668b5121dbed37a88b19dcb610dec2 Mon Sep 17 00:00:00 2001 From: Abdul Ali N Date: Mon, 6 Oct 2025 01:43:10 +0530 Subject: [PATCH] fix(firebase_messaging): fix null apple notification when sound is of type String --- .../Sources/firebase_messaging/FLTFirebaseMessagingPlugin.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/firebase_messaging/firebase_messaging/ios/firebase_messaging/Sources/firebase_messaging/FLTFirebaseMessagingPlugin.m b/packages/firebase_messaging/firebase_messaging/ios/firebase_messaging/Sources/firebase_messaging/FLTFirebaseMessagingPlugin.m index 74bbcb5142e0..d62ffdc0dc2f 100644 --- a/packages/firebase_messaging/firebase_messaging/ios/firebase_messaging/Sources/firebase_messaging/FLTFirebaseMessagingPlugin.m +++ b/packages/firebase_messaging/firebase_messaging/ios/firebase_messaging/Sources/firebase_messaging/FLTFirebaseMessagingPlugin.m @@ -992,7 +992,7 @@ + (NSDictionary *)remoteMessageUserInfoToDict:(NSDictionary *)userInfo { if (apsDict[@"sound"] != nil) { if ([apsDict[@"sound"] isKindOfClass:[NSString class]]) { // message.notification.apple.sound - notification[@"sound"] = @{ + notificationIOS[@"sound"] = @{ @"name" : apsDict[@"sound"], @"critical" : @NO, @"volume" : @1,