How many images can be shown on a notification in iOS 10?

669 Views Asked by At

How many images can be shown on a notification in iOS 10?

I've appended two images to the UNNotificationContent.attachments attribute in my UNNotificationServiceExtension. I only see one in the remote notification. Is there anyway to display more than one?

If no then, how does iOS 10 decide which ones to use in the notification?

1

There are 1 best solutions below

4
On BEST ANSWER

AFAIK, you can attach multiple attachments in rich notifications. So answering your questions.

Which one comes first? Whatever that has small size and downloads first, that will come.

Why might you get issue? There will be one completion handler. We have to finish our downloading process before 30secs. Whatever that downloads before 30 secs will be shown and the rest of the things will be discarded. So this might be the case of yours. I'm just assuming it. But I'm not sure of the exact issue of yours. So please make sure that you are not downloading Big size files which take more than 30 secs to load.