'Define Thumbnail in iOS Notifications

if you are receiving a local or push notification on iOS 15, normally you see the app's icon on the left of the notification and have the ability to attach media that is shown as thumbnail on the right. See here:

Notifcations

However some notifications (communications apps?) show the profile picture of the person sending the message (eg. iMessage or Slack in the example).

I'm running a news app and would like to place the logo of the publisher there. Is it possible to manipulate the image on the left and if so, how?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source