IOS notification carousel

I am trying to implement a rich push notification in iOS displaying a carousel, as in this GIF:

enter image description here

I get the correct payload from the server and parse it, but I can not find any information about it.

I tried using UNMutableNotificationContent attachmentsvar, giving it an array of several UNNotificationAttachment, but it only displays the first in the array, although the apple says:

Use this property to include images, movies, and audio files with notification content. The system displays the attached content along with the notification. You can also display attachments from your own notification user interfaces. https://developer.apple.com/documentation/usernotifications/unmutablenotificationcontent/1649857-attachments#see-also

iOS? ?

:)

+4

Source: https://habr.com/ru/post/1691183/


All Articles