MOBILE-3507 notifications: Support notifications with big pictures

main
Dani Palou 2020-09-15 08:27:16 +02:00
parent bee1e42b9b
commit 5d3e75e220
1 changed files with 6 additions and 0 deletions

View File

@ -527,6 +527,12 @@ export class CorePushNotificationsProvider {
localNotif.icon = notification.image; localNotif.icon = notification.image;
// This feature isn't supported by the official plugin, we use a fork. // This feature isn't supported by the official plugin, we use a fork.
(<any> localNotif).iconType = data['image-type']; (<any> localNotif).iconType = data['image-type'];
localNotif.summary = data.summaryText;
if (data.picture) {
localNotif.attachments = [data.picture];
}
} }
Promise.all(promises).then(() => { Promise.all(promises).then(() => {