File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/messaging/ios/RNFBMessaging Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -176,9 +176,6 @@ + (NSDictionary *)remoteMessageUserInfoToDict:(NSDictionary *)userInfo {
176
176
notificationIOS[@" subtitleLocArgs" ] = apsAlertDict[@" subtitle-loc-args" ];
177
177
}
178
178
}
179
-
180
- notification[@" ios" ] = notificationIOS;
181
- message[@" notification" ] = notification;
182
179
}
183
180
184
181
// message.notification.ios.sound
@@ -208,11 +205,14 @@ + (NSDictionary *)remoteMessageUserInfoToDict:(NSDictionary *)userInfo {
208
205
// message.notification.ios.sound
209
206
notificationIOS[@" sound" ] = notificationIOSSound;
210
207
}
211
-
212
- notification[@" ios" ] = notificationIOS;
213
- message[@" notification" ] = notification;
214
208
}
215
209
}
210
+ if ([notificationIOS count ] > 0 ) {
211
+ notification[@" ios" ] = notificationIOS;
212
+ }
213
+ if ([notification count ] > 0 ) {
214
+ message[@" notification" ] = notification;
215
+ }
216
216
217
217
return message;
218
218
}
You can’t perform that action at this time.
0 commit comments