It implements how to show interactive notification using UserNotification in ios 10.
To show content based notification (png,gifs,videos)
-
Download the content to Document directory of app
-
Add the path url as attachment in UNNotificationAttachment
Before adding contents check this also.