From 5d3e75e22091a4084e4c7d9c1e71b4c6bc97e20c Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 15 Sep 2020 08:27:16 +0200 Subject: [PATCH] MOBILE-3507 notifications: Support notifications with big pictures --- src/core/pushnotifications/providers/pushnotifications.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/pushnotifications/providers/pushnotifications.ts b/src/core/pushnotifications/providers/pushnotifications.ts index 76b2faa73..7c8449406 100644 --- a/src/core/pushnotifications/providers/pushnotifications.ts +++ b/src/core/pushnotifications/providers/pushnotifications.ts @@ -527,6 +527,12 @@ export class CorePushNotificationsProvider { localNotif.icon = notification.image; // This feature isn't supported by the official plugin, we use a fork. ( localNotif).iconType = data['image-type']; + + localNotif.summary = data.summaryText; + + if (data.picture) { + localNotif.attachments = [data.picture]; + } } Promise.all(promises).then(() => {