.
This commit is contained in:
parent
db26c250c6
commit
39a449e894
@ -28,8 +28,6 @@ createNotificationValidatedInscription = (inscription) => {
|
|||||||
...jsonNotification,
|
...jsonNotification,
|
||||||
date: moment(),
|
date: moment(),
|
||||||
priority: "high",
|
priority: "high",
|
||||||
_displayInForeground: true,
|
|
||||||
sound: 'default',
|
|
||||||
recipients: {
|
recipients: {
|
||||||
"userIds": [
|
"userIds": [
|
||||||
inscription.user.id,
|
inscription.user.id,
|
||||||
|
|||||||
@ -4,7 +4,7 @@ const { Expo } = require('expo-server-sdk');
|
|||||||
const expo = new Expo();
|
const expo = new Expo();
|
||||||
|
|
||||||
const createPushMessage = (data) => {
|
const createPushMessage = (data) => {
|
||||||
return {
|
const pushMessage = {
|
||||||
title: data.title,
|
title: data.title,
|
||||||
body: data.body,
|
body: data.body,
|
||||||
ttl: data.ttl,
|
ttl: data.ttl,
|
||||||
@ -18,7 +18,9 @@ const createPushMessage = (data) => {
|
|||||||
android: {
|
android: {
|
||||||
channelId: 'lqdvi-messages'
|
channelId: 'lqdvi-messages'
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
console.log(pushMessage);
|
||||||
|
return pushMessage;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user