From d2835a39decf9fe10f320815b77def650f7c053c Mon Sep 17 00:00:00 2001 From: "seonkyu.kim" Date: Tue, 20 Aug 2024 14:56:32 +0900 Subject: [PATCH] =?UTF-8?q?[=E2=9C=A8]=20push=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/push.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/push.js b/apps/push.js index 27e9a4f..19a8507 100644 --- a/apps/push.js +++ b/apps/push.js @@ -1,4 +1,5 @@ import apn from 'apn'; +import path from 'path'; // path 모듈을 가져옵니다. import { bundleID, apnKey, apnKeyID, apnTeamID } from '../private/config.js'; // APNs 옵션 설정 @@ -24,7 +25,7 @@ export function HandlePush(req, res) { } const notification = new apn.Notification(); - notification.topic = "your.bundle.id"; + notification.topic = bundleID; notification.expiry = Math.floor(Date.now() / 1000) + 3600; notification.badge = Number(badge); notification.sound = sound;