1

I am scheduling a local notification with the attachment array having two files. First one is image and second one is a audio file. When notification is delivered it shows only the first attachement, whether it is audio or image. Is it possible to show multiple attachments without subclassing the UNNotificationContentExtension class and creating the custom interface. Any help would be appreciated. Thank You!

Ankur JAIN
  • 111
  • 8

1 Answers1

0

My assumption is that multiple attachments can only be handled by your own custom Notification Content extensions, as of iOS 11.

The standard iOS notification content view only displays the first attachment. It even discards any additional attachments from the UNNotification. When you look at a notification that was created with multiple attachments and is displayed by retrieving it with UNUserNotificationCenter.current().getDeliveredNotifications you will find that it contains only 1 attachment and all others have been discarded.

Manuel
  • 14,274
  • 6
  • 57
  • 130