We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
attachment == nil
1 parent b68ad62 commit e3b4289Copy full SHA for e3b4289
Firebase/Messaging/FIRMessagingExtensionHelper.m
@@ -46,7 +46,9 @@ - (void)populateNotificationContent:(UNMutableNotificationContent *)content
46
if (attachmentURL) {
47
[self loadAttachmentForURL:attachmentURL
48
completionHandler:^(UNNotificationAttachment *attachment) {
49
- self.bestAttemptContent.attachments = @[ attachment ];
+ if (attachment != nil) {
50
+ self.bestAttemptContent.attachments = @[ attachment ];
51
+ }
52
[self deliverNotification];
53
}];
54
} else {
0 commit comments