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;