Push configuration on iOS

This commit is contained in:
Jackson Harper
2024-03-08 17:15:59 +08:00
parent 6bc100942f
commit 7d77291f11
5 changed files with 212 additions and 31 deletions

View File

@ -70,8 +70,10 @@ const sendNotification = async (obj: RuleActionObj) => {
const message = {
title: item.author || item.siteName || 'Omnivore',
body: item.title,
image: item.thumbnail,
}
const data = {
libraryItemId: item.id,
thumbnail: item.thumbnail,
}
return sendPushNotifications(obj.userId, message, 'rule')