Skip to content

Commit 7fe893c

Browse files
authored
fix(firebase_messaging): fix null apple notification when sound is of type String (#17770)
1 parent 799b12e commit 7fe893c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firebase_messaging/firebase_messaging/ios/firebase_messaging/Sources/firebase_messaging/FLTFirebaseMessagingPlugin.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ + (NSDictionary *)remoteMessageUserInfoToDict:(NSDictionary *)userInfo {
992992
if (apsDict[@"sound"] != nil) {
993993
if ([apsDict[@"sound"] isKindOfClass:[NSString class]]) {
994994
// message.notification.apple.sound
995-
notification[@"sound"] = @{
995+
notificationIOS[@"sound"] = @{
996996
@"name" : apsDict[@"sound"],
997997
@"critical" : @NO,
998998
@"volume" : @1,

0 commit comments

Comments
 (0)