From 39a449e894dbe1f55bcdf40dd552c5b63d6a5862 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 13 Nov 2019 12:21:10 +0100 Subject: [PATCH] . --- helpers/notification.helpers.js | 2 -- helpers/push.helper.js | 6 ++++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/helpers/notification.helpers.js b/helpers/notification.helpers.js index 8fde4a1..c61abc7 100644 --- a/helpers/notification.helpers.js +++ b/helpers/notification.helpers.js @@ -28,8 +28,6 @@ createNotificationValidatedInscription = (inscription) => { ...jsonNotification, date: moment(), priority: "high", - _displayInForeground: true, - sound: 'default', recipients: { "userIds": [ inscription.user.id, diff --git a/helpers/push.helper.js b/helpers/push.helper.js index a4e201b..557900b 100644 --- a/helpers/push.helper.js +++ b/helpers/push.helper.js @@ -4,7 +4,7 @@ const { Expo } = require('expo-server-sdk'); const expo = new Expo(); const createPushMessage = (data) => { - return { + const pushMessage = { title: data.title, body: data.body, ttl: data.ttl, @@ -18,7 +18,9 @@ const createPushMessage = (data) => { android: { channelId: 'lqdvi-messages' } - } + }; + console.log(pushMessage); + return pushMessage; };