I have a request from a client to implement this small image for certain cases of push notifications. The problem is the location must be in/beside the title (see attached image, the red-outlined box), and was just wondering if this is at all possible to do, and if so, how.
Asked
Active
Viewed 361 times
0
-
The answer is yes, a PushNotification acts like a viewcontroller and is configurable. Here is a full tutorial on how to subclass it : https://medium.com/@lucasgoesvalle/custom-push-notification-with-image-and-interactions-on-ios-swift-4-ffdbde1f457 – Olympiloutre Jul 17 '19 at 23:36
-
@Olympiloutre This tutorial only shows the full customization of the *detail view*, since modifying the main layout is not possible. – Tamás Sengel Jul 18 '19 at 09:22
1 Answers
2
No, it's not possible to include images in notifications like that. You must include them as media attachments (which will appear at the right side of the notification), more information about that here.
Alternatively, you can use an emoji in the title of the notification.

Tamás Sengel
- 55,884
- 29
- 169
- 223